diff options
author | 2013-03-22 10:33:50 +0000 | |
---|---|---|
committer | 2013-03-22 10:33:50 +0000 | |
commit | 6c0777c525839bed1243f354e5ffc93c7045101c (patch) | |
tree | b22b51e7ff2042cf3ec6c74e352dd4a33787db61 /usr.bin/tmux/screen-write.c | |
parent | Add client_session and client_last_session formats. (diff) | |
download | wireguard-openbsd-6c0777c525839bed1243f354e5ffc93c7045101c.tar.xz wireguard-openbsd-6c0777c525839bed1243f354e5ffc93c7045101c.zip |
Support the latest theory for mouse input, this is enabled/disabled with
SM/RM 1006 and is similar in style to SGR input: \033[<b;x;yM or
\033[b;x;ym. From Egmont Koblinger.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index 2d490dd375a..030538d5948 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.62 2013/03/22 10:31:22 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.63 2013/03/22 10:33:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -55,7 +55,9 @@ screen_write_reset(struct screen_write_ctx *ctx) screen_reset_tabs(s); screen_write_scrollregion(ctx, 0, screen_size_y(s) - 1); - s->mode &= ~(MODE_INSERT|MODE_KCURSOR|MODE_KKEYPAD|ALL_MOUSE_MODES); + + s->mode &= ~(MODE_INSERT|MODE_KCURSOR|MODE_KKEYPAD); + s->mode &= ~(ALL_MOUSE_MODES|MODE_MOUSE_UTF8|MODE_MOUSE_SGR); screen_write_clearscreen(ctx); screen_write_cursormove(ctx, 0, 0); |