head	1.3;
access;
symbols
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2002.01.06.08.23.01;	author nobutaka;	state dead;
branches;
next	1.2;

1.2
date	2001.11.07.16.52.35;	author nobutaka;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.21.20.42.59;	author dcs;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Update www/w3m to 0.2.3.2, www/w3m-img to 0.2.3.2+1.17 and
www/w3m-m17n to 0.2.3.2+20011230.
@
text
@--- 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;
@


1.2
log
@- Update to 0.2.1-inu-1.5 and www/w3m-img port to 0.2.1-inu-1.5-img-1.12.
- Enable mouse operation when terminal type is `rxvt'.
  (Submitted by: necter)
- Correct pkg-descr.
  (Submitted by: Thomas E. Dickey)

Reviewed by: knu
@
text
@@


1.1
log
@The include file machine/console.h has been deprecated on -current.
Ifdef it.

Submitted by:	nobutaka@@nobutaka.com
@
text
@d1 23
a23 16
--- 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;
@

