Sync OpenBSD patchset 845:

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:
Tiago Cunha
2011-01-21 23:56:11 +00:00
parent 7a68cff1db
commit 332bfbf273
3 changed files with 7 additions and 17 deletions

6
tty.c
View File

@ -1,4 +1,4 @@
/* $Id: tty.c,v 1.200 2011-01-21 23:44:13 tcunha Exp $ */
/* $Id: tty.c,v 1.201 2011-01-21 23:56:11 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -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)