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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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:
>
> A workaround might be to detect cmQuit and generate a SIGINT signal.
>
> Or maybe a proper fix would be to add the freeResources call after the
> execute call in:
>
> void TProgram::run()
> {
> execute();
> }
>
> 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>
// Public variables
@@ -322,6 +323,7 @@
void TProgram::run()
{
execute();
+ freeResources();
}
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) == 'Y';
}
-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;
};
+void freeResources();
+
#endif // Uses_TScreen
i don't understand...
a.
[-- Attachment #2 --]
-----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-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026162141.C11804>
