From b433886840ec4dba4b8b921b741b6a448a226d30 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 5 Sep 2012 09:59:41 +0000 Subject: [PATCH] We can't tell what the terminal has done with a DCS string, so reset the cursor and attributes afterwards. --- tty.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tty.c b/tty.c index 01b3a93d..0270af93 100644 --- a/tty.c +++ b/tty.c @@ -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