summaryrefslogtreecommitdiffstats
path: root/www/w3m/files/patch-au
diff options
context:
space:
mode:
Diffstat (limited to 'www/w3m/files/patch-au')
-rw-r--r--www/w3m/files/patch-au39
1 files changed, 23 insertions, 16 deletions
diff --git a/www/w3m/files/patch-au b/www/w3m/files/patch-au
index d061e70..30d8d47 100644
--- a/www/w3m/files/patch-au
+++ b/www/w3m/files/patch-au
@@ -1,16 +1,23 @@
---- terms.c.orig Sun Oct 22 00:46:08 2000
-+++ terms.c Sun Oct 22 01:23:53 2000
-@@ -17,7 +17,13 @@
- #include <gpm.h>
- #endif /* USE_GPM */
- #ifdef USE_SYSMOUSE
-+#include <osreldate.h>
-+#if (__FreeBSD_version >= 400017)
-+#include <sys/consio.h>
-+#include <sys/fbio.h>
-+#else
- #include <machine/console.h>
-+#endif
- int (*sysm_handler) (int x, int y, int nbs, int obs);
- static int cwidth = 8, cheight = 16;
- static int xpix, ypix, nbs, obs = 0;
+--- terms.c.orig Mon Nov 5 02:59:40 2001
++++ terms.c Mon Nov 5 02:59:17 2001
+@@ -244,8 +244,18 @@
+ TerminalGet(tty, &d_ioval);
+ #ifdef MOUSE
+ term = getenv("TERM");
+- if (!strncmp(term, "kterm", 5) || !strncmp(term, "xterm", 5)) {
+- is_xterm = 1;
++ {
++ static struct { const char *prefix; int len; } xtermlike[] = {
++ { "kterm", 5 }, { "xterm", 5 }, { "rxvt", 4 }
++ };
++ int i;
++
++ for (i = 0; i < sizeof(xtermlike)/sizeof(xtermlike[0]); i++) {
++ if (!strncmp(term, xtermlike[i].prefix, xtermlike[i].len)) {
++ is_xterm = 1;
++ break;
++ }
++ }
+ }
+ #endif
+ return 0;
OpenPOWER on IntegriCloud