mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.
This commit is contained in:
@ -230,6 +230,7 @@ window_clock_draw_screen(struct window_pane *wp)
|
||||
screen_write_cursormove(&ctx, x, y);
|
||||
|
||||
memcpy(&gc, &grid_default_cell, sizeof gc);
|
||||
gc.flags |= GRID_FLAG_NOPALETTE;
|
||||
gc.fg = colour;
|
||||
screen_write_puts(&ctx, &gc, "%s", tim);
|
||||
}
|
||||
@ -242,6 +243,7 @@ window_clock_draw_screen(struct window_pane *wp)
|
||||
y = (screen_size_y(s) / 2) - 3;
|
||||
|
||||
memcpy(&gc, &grid_default_cell, sizeof gc);
|
||||
gc.flags |= GRID_FLAG_NOPALETTE;
|
||||
gc.bg = colour;
|
||||
for (ptr = tim; *ptr != '\0'; ptr++) {
|
||||
if (*ptr >= '0' && *ptr <= '9')
|
||||
|
Reference in New Issue
Block a user