summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-22 10:33:50 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-22 10:33:50 +0000
commit67b4d5b6094c8845af344d1386bb3fed86f54b5a (patch)
treee199e17567f0ee470f202006cfc699bdc8134712 /screen-write.c
parentad760b3bf702801eaa121715f2a283526d614913 (diff)
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 'screen-write.c')
-rw-r--r--screen-write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index 9cbb5bb9..bee6f6d7 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -41,7 +41,6 @@ screen_write_start(
}
/* Finish writing. */
-/* ARGSUSED */
void
screen_write_stop(unused struct screen_write_ctx *ctx)
{
@@ -56,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);