commit e064ae257d825cb50347710bf57a182e16297603
parent e97cb2ec1a849cac2f69e407a5154a23b126d117
Author: inu <inu>
Date: Thu, 7 Jun 2007 10:54:10 +0000
add handling xterm-incompatible terminals without gpm. [w3m-dev 04278]
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-07 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 04278] Re: segfault on CentOS4.5/libgc6.8
+ * term.c: add handling xterm-incompatible terminals without gpm.
+
2007-06-04 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 04271] vi_prec_num
diff --git a/terms.c b/terms.c
@@ -1897,7 +1897,7 @@ wgetch(void *p)
int
do_getch()
{
- if (is_xterm)
+ if (is_xterm || !gpm_handler)
return getch();
else
return Gpm_Getch();
@@ -2037,6 +2037,7 @@ mouse_init()
conn.maxMod = 0;
conn.minMod = 0;
+ gpm_handler = NULL;
r = Gpm_Open(&conn, 0);
if (r == -2) {
/*