summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-07 15:28:13 +0000
committernicm <nicm>2017-01-07 15:28:13 +0000
commit314e933914de4096c40e623c793049d26484d53a (patch)
tree8de850ef5c15384a8b2400af496200a235ed16ff /screen-redraw.c
parentcae0fbbe8c7cc16ac38aa8149ef9b4e2a54bce0e (diff)
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 84a951dc..b7833716 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -588,6 +588,8 @@ screen_redraw_draw_number(struct client *c, struct window_pane *wp, u_int top)
gc.bg = active_colour;
else
gc.bg = colour;
+ gc.flags |= GRID_FLAG_NOPALETTE;
+
tty_attributes(tty, &gc, wp);
for (ptr = buf; *ptr != '\0'; ptr++) {
if (*ptr < '0' || *ptr > '9')
@@ -615,6 +617,8 @@ draw_text:
gc.fg = active_colour;
else
gc.fg = colour;
+ gc.flags |= GRID_FLAG_NOPALETTE;
+
tty_attributes(tty, &gc, wp);
tty_puts(tty, buf);