aboutsummaryrefslogtreecommitdiffstats
path: root/terms.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-19 19:19:21 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-19 19:19:21 +0000
commit885fe74b2fc564585733e47736c2ccda2b7c8c02 (patch)
treea8d23896a68f6d72de1cbab21fbac01bbf9a28b9 /terms.c
parentXMakefile (funcname1.h funcname2.h): sort as well as funcname.c (diff)
downloadw3m-885fe74b2fc564585733e47736c2ccda2b7c8c02.tar.gz
w3m-885fe74b2fc564585733e47736c2ccda2b7c8c02.zip
Gpm_Close() is required.
closes: Debian Bug#120221: w3m-ssl: trashes terminal on exit
Diffstat (limited to '')
-rw-r--r--terms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/terms.c b/terms.c
index ac3e298..39a5987 100644
--- a/terms.c
+++ b/terms.c
@@ -1,4 +1,4 @@
-/* $Id: terms.c,v 1.7 2001/11/19 08:17:13 ukai Exp $ */
+/* $Id: terms.c,v 1.8 2001/11/19 19:19:21 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -1728,7 +1728,11 @@ mouse_init()
/*
* If Gpm_Open() success, returns >= 0
* Gpm_Open() returns -2 in case of xterm.
+ * Gpm_Close() is necessary here. Otherwise,
+ * xterm is being left in the mode where the mouse clicks are
+ * passed through to the application.
*/
+ Gpm_Close();
is_xterm = 1;
} else {
gpm_handler = gpm_process_mouse;