summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormrdotx2024-02-13 18:47:07 +0100
committermrdotx2024-02-13 18:47:07 +0100
commit0df4b5ec3746283512df0b363f4f9808ed2403e2 (patch)
tree97bce3b069a4bada9e03d2b4f297d4d801723dc6
parentf4c15b07151c344e874f2433f7a7c821be8ed325 (diff)
downloadaur-0df4b5ec3746283512df0b363f4f9808ed2403e2.tar.gz
initial upload
-rw-r--r--7-bit-queries.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/7-bit-queries.patch b/7-bit-queries.patch
new file mode 100644
index 000000000000..4165d27dc771
--- /dev/null
+++ b/7-bit-queries.patch
@@ -0,0 +1,19 @@
+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.
+
+--- src/command.C
++++ src/command.C
+@@ -3426,9 +3426,9 @@
+ 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);