aboutsummaryrefslogtreecommitdiffstats
path: root/terms.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-17 15:39:32 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-17 15:39:32 +0000
commit98fced78c456f546aafc2f937d0d5beec77039aa (patch)
tree1807c4f13a03b8fdb200f6d7bf7fd1189f134fc4 /terms.c
parent[w3m-dev 02666] resizing on xterm with gpm support (diff)
downloadw3m-98fced78c456f546aafc2f937d0d5beec77039aa.tar.gz
w3m-98fced78c456f546aafc2f937d0d5beec77039aa.zip
[w3m-dev 02667]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--terms.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/terms.c b/terms.c
index 17af0d4..302b592 100644
--- a/terms.c
+++ b/terms.c
@@ -1,4 +1,4 @@
-/* $Id: terms.c,v 1.24 2001/12/15 18:33:41 ukai Exp $ */
+/* $Id: terms.c,v 1.25 2001/12/17 15:39:32 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -2013,7 +2013,7 @@ mouse_init()
conn.defaultMask = 0;
conn.maxMod = 0;
conn.minMod = 0;
-
+
r = Gpm_Open(&conn, 0);
if (r == -2) {
/*
@@ -2024,7 +2024,7 @@ mouse_init()
* passed through to the application.
*/
Gpm_Close();
- is_xterm = (NEED_XTERM_ON|NEED_XTERM_OFF);
+ is_xterm = (NEED_XTERM_ON | NEED_XTERM_OFF);
}
else if (r >= 0) {
gpm_handler = gpm_process_mouse;
@@ -2033,7 +2033,9 @@ mouse_init()
if (is_xterm) {
XTERM_ON;
}
+#ifdef SIGWINCH
signal(SIGWINCH, resize_hook);
+#endif
mouseActive = 1;
}