* 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.
This commit is contained in:
Pavel Roskin 2001-09-15 22:59:34 +00:00
parent e65a82ed06
commit aa50585937
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
2001-09-15 Pavel Roskin <proski@gnu.org>
* 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.

View File

@ -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 */