diff options
author | 2012-09-05 09:59:41 +0000 | |
---|---|---|
committer | 2012-09-05 09:59:41 +0000 | |
commit | 9b75f25fa6688caabae59752e1612b34ede3957d (patch) | |
tree | af6528fcc4872d8a650dd4ec5fcb7334b830c5dd /usr.bin/tmux/tty.c | |
parent | don't let pkg_add turn interactive, and waive the @ask-update questions. (diff) | |
download | wireguard-openbsd-9b75f25fa6688caabae59752e1612b34ede3957d.tar.xz wireguard-openbsd-9b75f25fa6688caabae59752e1612b34ede3957d.zip |
We can't tell what the terminal has done with a DCS string, so reset the
cursor and attributes afterwards.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index e4ec7c899aa..4905f02203b 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.140 2012/09/03 15:47:40 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.141 2012/09/05 09:59:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 |