summaryrefslogtreecommitdiff
path: root/user/tmux/xterm-DECLRMM.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-08-23 20:30:47 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-08-23 20:30:47 +0000
commitfee95981eb3f79393dca29065c0c9d2cab5b3061 (patch)
treee96dbdb640b9d3b2963c5903ed4d3825b3bdcfe6 /user/tmux/xterm-DECLRMM.patch
parent9b3b10ec34db83c177037c617589c861a2fa52c1 (diff)
parent12dc56030ed99e73bc19efcb627ea4fa1f475ddb (diff)
downloadpackages-fee95981eb3f79393dca29065c0c9d2cab5b3061.tar.gz
packages-fee95981eb3f79393dca29065c0c9d2cab5b3061.tar.bz2
packages-fee95981eb3f79393dca29065c0c9d2cab5b3061.tar.xz
packages-fee95981eb3f79393dca29065c0c9d2cab5b3061.zip
Merge branch 'xterm-tmux-2-electric-boogaloo' into 'master'
Actually, fix tmux instead of xterm See merge request adelie/packages!326
Diffstat (limited to 'user/tmux/xterm-DECLRMM.patch')
-rw-r--r--user/tmux/xterm-DECLRMM.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/tmux/xterm-DECLRMM.patch b/user/tmux/xterm-DECLRMM.patch
new file mode 100644
index 000000000..b9bef3455
--- /dev/null
+++ b/user/tmux/xterm-DECLRMM.patch
@@ -0,0 +1,23 @@
+From 26f274011096b9eacfd2753d8f7afcb63e796ab9 Mon Sep 17 00:00:00 2001
+From: nicm <nicm>
+Date: Thu, 1 Aug 2019 11:45:34 +0000
+Subject: [PATCH] xterm 348 now disables margins when resized, so send DECLRMM
+ again.
+
+---
+ tty.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tty.c b/tty.c
+index ab1da9fd3..024aef271 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;