diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-09-05 09:59:41 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-09-05 09:59:41 +0000 |
commit | b433886840ec4dba4b8b921b741b6a448a226d30 (patch) | |
tree | 73da72aefa364b53883ccd2ee0b7b77461a27710 | |
parent | 59c760dfcd9da4ce2a4e5b68e66416f77b4d5e5f (diff) | |
download | rtmux-b433886840ec4dba4b8b921b741b6a448a226d30.tar.gz rtmux-b433886840ec4dba4b8b921b741b6a448a226d30.tar.bz2 rtmux-b433886840ec4dba4b8b921b741b6a448a226d30.zip |
We can't tell what the terminal has done with a DCS string, so reset the
cursor and attributes afterwards.
-rw-r--r-- | tty.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1046,6 +1046,12 @@ tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx) for (i = 0; i < ctx->num; i++) tty_putc(tty, str[i]); + + tty->cx = tty->cy = UINT_MAX; + tty->rupper = tty->rlower = UINT_MAX; + + tty_reset(tty); + tty_cursor(tty, 0, 0); } void |