We can't tell what the terminal has done with a DCS string, so reset the

cursor and attributes afterwards.
pull/1/head
Nicholas Marriott 2012-09-05 09:59:41 +00:00
parent 59c760dfcd
commit b433886840
1 changed files with 6 additions and 0 deletions

6
tty.c
View File

@ -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