From aa505859377ea2ba99a883f3190c8a95d95c53a3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sat, 15 Sep 2001 22:59:34 +0000 Subject: [PATCH] * main.c (init_xterm_support): Don't enable xterm_flag just because of "kmous" in terminfo. Setiing this flag means much more than just mouse support. Recognize terminals beginning with "rxvt" and set xterm_flag for them. --- src/ChangeLog | 5 +++++ src/main.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 46cbdc073..bfdc4916e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,10 @@ 2001-09-15 Pavel Roskin + * main.c (init_xterm_support): Don't enable xterm_flag just + because of "kmous" in terminfo. Setiing this flag means much + more than just mouse support. Recognize terminals beginning + with "rxvt" and set xterm_flag for them. + * cmd.c (view_other_cmd): Don't check use_mouse_p before calling init_mouse() and shut_mouse(), since those functions decide themselves what to do. diff --git a/src/main.c b/src/main.c index 323ce590d..fea9d43e7 100644 --- a/src/main.c +++ b/src/main.c @@ -1742,9 +1742,9 @@ init_xterm_support (void) } if (force_xterm - || (strncmp (termvalue, "xterm", 5) == 0 - || strcmp (termvalue, "dtterm") == 0) - || xmouse_seq != NULL) { + || strncmp (termvalue, "xterm", 5) == 0 + || strncmp (termvalue, "rxvt", 4) == 0 + || strcmp (termvalue, "dtterm") == 0) { xterm_flag = 1; /* Default to the standard xterm sequence */