From owner-freebsd-libh Fri Oct 26 13:21:17 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by hub.freebsd.org (Postfix) with ESMTP id 1B7A537B41E for ; Fri, 26 Oct 2001 13:21:10 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts7-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011026202109.FUGY2701.tomts7-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Fri, 26 Oct 2001 16:21:09 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 21E8C18CC; Fri, 26 Oct 2001 16:21:05 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 6ADB620ACE; Fri, 26 Oct 2001 16:21:41 -0400 (EDT) Date: Fri, 26 Oct 2001 16:21:41 -0400 From: The Anarcat To: Alexander Langer Cc: Libh Subject: Re: Exiting tvision (Re: Libh minimum requirements) Message-ID: <20011026162141.C11804@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Alexander Langer , Libh References: <20011022150932.B6880@zerogravity.kawo2.rwth-aachen.de> <20011022131351.A601@shall.anarcat.dyndns.org> <20011022194625.A9492@zerogravity.kawo2.rwth-aachen.de> <20011022145844.C537@shall.anarcat.dyndns.org> <20011022213640.E10226@zerogravity.kawo2.rwth-aachen.de> <20011022154943.F537@shall.anarcat.dyndns.org> <20011024200242.D78323@zerogravity.kawo2.rwth-aachen.de> <20011024144845.F572@shall.anarcat.dyndns.org> <20011026100017.A43735@zerogravity.kawo2.rwth-aachen.de> <20011026143441.C530@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ALfTUftag+2gvp1h" Content-Disposition: inline In-Reply-To: <20011026143441.C530@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri Oct 26, 2001 at 02:34:41PM -0400, The Anarcat wrote: > On Fri Oct 26, 2001 at 10:00:17AM +0200, Alexander Langer wrote: >=20 > A workaround might be to detect cmQuit and generate a SIGINT signal. >=20 > Or maybe a proper fix would be to add the freeResources call after the > execute call in: >=20 > void TProgram::run() > { > execute(); > } >=20 > or maybe simply the stopcurses call. ;) All nice talk, but the following patch doesn't fix anything: --- TProgram.cc.orig Fri Oct 26 16:16:21 2001 +++ TProgram.cc Fri Oct 26 16:16:39 2001 @@ -26,6 +26,7 @@ #define Uses_TVMemMgr #endif #include +#include =20 // Public variables =20 @@ -322,6 +323,7 @@ void TProgram::run() { execute(); + freeResources(); } =20 void TProgram::setScreenMode( ushort ) --- system.cc.orig Fri Oct 26 16:17:12 2001 +++ system.cc Fri Oct 26 16:17:38 2001 @@ -1710,7 +1710,7 @@ return toupper(key) =3D=3D 'Y'; } =20 -static void freeResources() +void freeResources() { TScreen::drawMouse(0); #ifdef HAVE_GPM_H --- system.h.orig Fri Oct 26 16:17:00 2001 +++ system.h Fri Oct 26 16:18:09 2001 @@ -414,4 +414,6 @@ static ushort *screenBuffer; }; =20 +void freeResources(); + #endif // Uses_TScreen i don't understand... a. --ALfTUftag+2gvp1h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvZxdQACgkQttcWHAnWiGc9lQCeI0k5zyceUqAg7jTyt6DPaOxu +AwAn3pYbSc1XccrDNjmBEl4p/C1K/JE =SVnQ -----END PGP SIGNATURE----- --ALfTUftag+2gvp1h-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message