aboutsummaryrefslogtreecommitdiffstats
path: root/terms.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-19 19:21:11 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-19 19:21:11 +0000
commit46441e7d392eb78c73a451286e3948b85a1c5893 (patch)
treec749e59ed87561fa3cc0b43a649234444d3d2b41 /terms.c
parentGpm_Close() is required. (diff)
downloadw3m-46441e7d392eb78c73a451286e3948b85a1c5893.tar.gz
w3m-46441e7d392eb78c73a451286e3948b85a1c5893.zip
[w3m-dev 02447] XTerm's mouse sequence should be skipped?
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'terms.c')
-rw-r--r--terms.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/terms.c b/terms.c
index 39a5987..e0dd6fc 100644
--- a/terms.c
+++ b/terms.c
@@ -1,4 +1,4 @@
-/* $Id: terms.c,v 1.8 2001/11/19 19:19:21 ukai Exp $ */
+/* $Id: terms.c,v 1.9 2001/11/19 19:21:11 ukai Exp $ */
/*
* An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995
@@ -1670,6 +1670,14 @@ skip_escseq(void)
c = getch();
if (c == '[' || c == 'O') {
c = getch();
+#ifdef MOUSE
+ if (is_xterm && c == 'M') {
+ getch();
+ getch();
+ getch();
+ }
+ else
+#endif
while (IS_DIGIT(c))
c = getch();
}