Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 16:21:41 -0400
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        Alexander Langer <alex@big.endian.de>
Cc:        Libh <freebsd-libh@freebsd.org>
Subject:   Re: Exiting tvision (Re: Libh minimum requirements)
Message-ID:  <20011026162141.C11804@shall.anarcat.dyndns.org>
In-Reply-To: <20011026143441.C530@shall.anarcat.dyndns.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <tvision/tv.h>
+#include <tvision/system.h>
=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026162141.C11804>