diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-15 00:16:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-15 00:16:00 +0000 |
commit | 8f8e81c0c9a39b2977e3b2737d4825ab00bef52a (patch) | |
tree | 1f53911c0aafd3ca98497b0b13283333941ea847 | |
parent | 4f34e25dd867e30652682d9aac01d8b1af220fa6 (diff) | |
download | rtmux-8f8e81c0c9a39b2977e3b2737d4825ab00bef52a.tar.gz rtmux-8f8e81c0c9a39b2977e3b2737d4825ab00bef52a.tar.bz2 rtmux-8f8e81c0c9a39b2977e3b2737d4825ab00bef52a.zip |
Mouse highlight mode (1001) requires a program to cooperate so
supporting it through tmux is not as easy as this, remove it for now.
-rw-r--r-- | input.c | 4 | ||||
-rw-r--r-- | tmux.h | 10 | ||||
-rw-r--r-- | tty.c | 4 |
3 files changed, 4 insertions, 14 deletions
@@ -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); @@ -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. @@ -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) |