mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 01:04:06 +01:00
Mouse highlight mode (1001) requires a program to cooperate so
supporting it through tmux is not as easy as this, remove it for now.
This commit is contained in:
parent
4f34e25dd8
commit
8f8e81c0c9
4
input.c
4
input.c
@ -1201,10 +1201,6 @@ input_csi_dispatch(struct input_ctx *ictx)
|
||||
screen_write_mousemode_on(
|
||||
&ictx->ctx, MODE_MOUSE_STANDARD);
|
||||
break;
|
||||
case 1001:
|
||||
screen_write_mousemode_on(
|
||||
&ictx->ctx, MODE_MOUSE_HIGHLIGHT);
|
||||
break;
|
||||
case 1002:
|
||||
screen_write_mousemode_on(
|
||||
&ictx->ctx, MODE_MOUSE_BUTTON);
|
||||
|
10
tmux.h
10
tmux.h
@ -547,13 +547,11 @@ struct mode_key_table {
|
||||
#define MODE_KKEYPAD 0x8 /* set = application, clear = number */
|
||||
#define MODE_WRAP 0x10 /* whether lines wrap */
|
||||
#define MODE_MOUSE_STANDARD 0x20
|
||||
#define MODE_MOUSE_HIGHLIGHT 0x40
|
||||
#define MODE_MOUSE_BUTTON 0x80
|
||||
#define MODE_MOUSE_ANY 0x100
|
||||
#define MODE_MOUSE_UTF8 0x200
|
||||
#define MODE_MOUSE_BUTTON 0x40
|
||||
#define MODE_MOUSE_ANY 0x80
|
||||
#define MODE_MOUSE_UTF8 0x100
|
||||
|
||||
#define ALL_MOUSE_MODES (MODE_MOUSE_STANDARD| \
|
||||
MODE_MOUSE_HIGHLIGHT|MODE_MOUSE_BUTTON|MODE_MOUSE_ANY)
|
||||
#define ALL_MOUSE_MODES (MODE_MOUSE_STANDARD|MODE_MOUSE_BUTTON|MODE_MOUSE_ANY)
|
||||
|
||||
/*
|
||||
* A single UTF-8 character.
|
||||
|
4
tty.c
4
tty.c
@ -403,8 +403,6 @@ tty_update_mode(struct tty *tty, int mode)
|
||||
tty_puts(tty, "\033[?1005h");
|
||||
if (mode & MODE_MOUSE_STANDARD)
|
||||
tty_puts(tty, "\033[?1000h");
|
||||
else if (mode & MODE_MOUSE_HIGHLIGHT)
|
||||
tty_puts(tty, "\033[?1001h");
|
||||
else if (mode & MODE_MOUSE_BUTTON)
|
||||
tty_puts(tty, "\033[?1002h");
|
||||
else if (mode & MODE_MOUSE_ANY)
|
||||
@ -412,8 +410,6 @@ tty_update_mode(struct tty *tty, int mode)
|
||||
} else {
|
||||
if (tty->mode & MODE_MOUSE_STANDARD)
|
||||
tty_puts(tty, "\033[?1000l");
|
||||
else if (tty->mode & MODE_MOUSE_HIGHLIGHT)
|
||||
tty_puts(tty, "\033[?1001l");
|
||||
else if (tty->mode & MODE_MOUSE_BUTTON)
|
||||
tty_puts(tty, "\033[?1002l");
|
||||
else if (tty->mode & MODE_MOUSE_ANY)
|
||||
|
Loading…
Reference in New Issue
Block a user