View | Details | Raw Unified | Return to bug 15556
Collapse All | Expand All

(-)w3m/patches/patch-al (+55 lines)
Line 0 Link Here
1
--- terms.c.orig	Sat Dec 18 16:46:16 1999
2
+++ terms.c	Sat Dec 18 16:53:51 1999
3
@@ -14,8 +14,8 @@
4
 #include <string.h>
5
 #ifdef USE_GPM
6
 #include <gpm.h>
7
-static int is_xterm = 0;
8
 #endif
9
+static int is_xterm = 0;
10
 
11
 #ifdef AIX
12
 #include <sys/select.h>
13
@@ -1471,16 +1471,23 @@
14
     gpm_handler = gpm_process_mouse;
15
   }
16
 #endif
17
+  char *term;
18
+
19
+  if (mouseActive) return;
20
+  term = getenv("TERM");
21
+  if (!strncmp(term,"kterm",5) || !strncmp(term,"xterm",5)) {
22
+    is_xterm = 1;
23
+  }
24
   mouseActive = 1;
25
 }
26
 
27
 void mouse_end()
28
 {
29
   if (mouseActive == 0) return;
30
-#ifdef USE_GPM
31
   if (is_xterm) {
32
     XTERM_OFF;
33
   }
34
+#ifdef USE_GPM
35
   else
36
     Gpm_Close();
37
 #endif
38
@@ -1491,17 +1498,13 @@
39
 {
40
   if (!mouseActive)
41
     mouse_init();
42
-#ifdef USE_GPM
43
   if (is_xterm)
44
-#endif
45
     XTERM_ON;
46
 }
47
 
48
 void mouse_inactive()
49
 {
50
-#ifdef USE_GPM
51
   if (is_xterm)
52
-#endif
53
     XTERM_OFF;
54
 }
55
   
(-)w3m/patches/patch-am (+14 lines)
Line 0 Link Here
1
--- keybind.c.orig	Mon Dec  6 15:18:33 1999
2
+++ keybind.c	Mon Dec  6 15:24:31 1999
3
@@ -90,9 +90,9 @@
4
 /* 8      9       :       ;       <       =       >       ?        */
5
   nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd,
6
 /* @      A       B       C       D       E       F       G        */
7
-  nulcmd, movU,   movD,   movR,   movL,   nulcmd, nulcmd, nulcmd,
8
+  nulcmd, movU,   movD,   movR,   movL,   nulcmd, goLineL,pgFore,
9
 /* H      I       J       K       L       M       N       O        */
10
-  nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, mouse,  nulcmd, nulcmd,
11
+  goLineF,pgBack, nulcmd, nulcmd, nulcmd, mouse,  nulcmd, nulcmd,
12
 /* P      Q       R       S       T       U       V       W        */
13
   nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd,
14
 /* X      Y       Z       [       \       ]       ^       _        */

Return to bug 15556