diff options
author | 2019-08-01 11:45:34 +0000 | |
---|---|---|
committer | 2019-08-01 11:45:34 +0000 | |
commit | 9f61a9bf9407e376d12ac29cdae722ee58110da2 (patch) | |
tree | e1ff4a73918ed6c8c743ab538b21c0793cdd87ad /usr.bin/tmux/tty.c | |
parent | Add -N to capture-pane to preserve trailing spaces, from Leon Winter. (diff) | |
download | wireguard-openbsd-9f61a9bf9407e376d12ac29cdae722ee58110da2.tar.xz wireguard-openbsd-9f61a9bf9407e376d12ac29cdae722ee58110da2.zip |
xterm 348 now disables margins when resized, so send DECLRMM again.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index a0672a35dde..c4b5ae4886f 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.329 2019/07/16 14:11:52 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.330 2019/08/01 11:45:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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; |