rxvt-unicode: adjust patch to send ESC \ instead of BEL, allows working
with all of the tmux versions that use OSC 10/11 (support for BEL was only added to tmux today)
This commit is contained in:
parent
dcce6e7de5
commit
f936c874fc
@ -1,7 +1,7 @@
|
||||
COMMENT= clone of rxvt with Unicode and Xft support
|
||||
|
||||
DISTNAME= rxvt-unicode-9.31
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
CATEGORIES= x11
|
||||
|
@ -1,16 +1,20 @@
|
||||
OSC commands returning the colour sequence must be terminated by either
|
||||
of ST ^[\ or BEL. rxvt-unicode tries to use the same type of termination
|
||||
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 BEL instead for now.
|
||||
used for 7-bit queries. Force to using ESC \ instead for now.
|
||||
|
||||
Index: src/command.C
|
||||
--- src/command.C.orig
|
||||
+++ src/command.C
|
||||
@@ -3417,6 +3417,7 @@ rxvt_term::process_color_seq (int report, int color, c
|
||||
rgba c;
|
||||
pix_colors_focused[color].get (c);
|
||||
char rgba_str[32];
|
||||
+ resp = '\007';
|
||||
@@ -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 XFT
|
||||
if (c.a != rgba::MAX_CC)
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user