summaryrefslogtreecommitdiffstats
path: root/source/xap/rxvt-unicode/rxvt.tmux.patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-02-20 21:08:27 +0000
committer Eric Hameleers <alien@slackware.com>2024-02-20 22:29:41 +0100
commit96bfb8fafe527cd86c5f7f6c52656a85b7b16c39 (patch)
treeab0c4b5c42104780817f4ab10248fa5e312cb6b6 /source/xap/rxvt-unicode/rxvt.tmux.patch
parentcb087e235bf975302a0c5372ade9c7532951a489 (diff)
downloadcurrent-96bfb8fafe527cd86c5f7f6c52656a85b7b16c39.tar.gz
current-96bfb8fafe527cd86c5f7f6c52656a85b7b16c39.tar.xz
Tue Feb 20 21:08:27 UTC 202420240220210827
xap/rxvt-unicode-9.31-x86_64-2.txz: Rebuilt. Patched to fix input buffer garbage when starting tmux. Thanks to Youjie.
Diffstat (limited to 'source/xap/rxvt-unicode/rxvt.tmux.patch')
-rw-r--r--source/xap/rxvt-unicode/rxvt.tmux.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/source/xap/rxvt-unicode/rxvt.tmux.patch b/source/xap/rxvt-unicode/rxvt.tmux.patch
new file mode 100644
index 000000000..1ca9cfa25
--- /dev/null
+++ b/source/xap/rxvt-unicode/rxvt.tmux.patch
@@ -0,0 +1,21 @@
+OSC commands returning the colour sequence must be terminated by either
+of ST, ESC \, or BEL. rxvt-unicode tries to use the same type of termination
+as was in the query but doesn't correctly handle the multiple-char sequence
+used for 7-bit queries. Force to using ESC \ instead for now.
+
+Index: src/command.C
+--- src/command.C.orig
++++ src/command.C
+@@ -3426,9 +3426,9 @@ rxvt_term::process_color_seq (int report, int color, c
+ snprintf (rgba_str, sizeof (rgba_str), "rgb:%04x/%04x/%04x", c.r, c.g, c.b);
+
+ if (IN_RANGE_INC (color, minCOLOR, maxTermCOLOR))
+- tt_printf ("\033]%d;%d;%s%c", report, color - minCOLOR, rgba_str, resp);
++ tt_printf ("\033]%d;%d;%s\033\\", report, color - minCOLOR, rgba_str);
+ else
+- tt_printf ("\033]%d;%s%c", report, rgba_str, resp);
++ tt_printf ("\033]%d;%s\033\\", report, rgba_str, resp);
+ }
+ else
+ set_window_color (color, str);
+