summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2019-08-01 11:45:34 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-08-01 18:52:33 +0100
commit26f274011096b9eacfd2753d8f7afcb63e796ab9 (patch)
tree1a97db5a4a510a58e9a1aec7d54486b99fda10b3 /tty.c
parentb8b865fb17caba880b1c178f8c0bdb855cfe98c8 (diff)
xterm 348 now disables margins when resized, so send DECLRMM again.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index ab1da9fd..024aef27 100644
--- a/tty.c
+++ b/tty.c
@@ -1879,6 +1879,8 @@ tty_invalidate(struct tty *tty)
tty->rlower = tty->rright = UINT_MAX;
if (tty->flags & TTY_STARTED) {
+ if (tty_use_margin(tty))
+ tty_puts(tty, "\033[?69h"); /* DECLRMM */
tty_putcode(tty, TTYC_SGR0);
tty->mode = ALL_MODES;