summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2019-08-01 11:45:34 +0000
committernicm <nicm>2019-08-01 11:45:34 +0000
commit49bf7dc77e5372a8ec404d1fc2e12b8f68a256d5 (patch)
tree0c633edbcd655ff6a3c6518c2c4a947a384a0037
parent2db5f9c21528e9a604af6e5d82689af93028d28b (diff)
xterm 348 now disables margins when resized, so send DECLRMM again.
-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;