mirror of
https://github.com/tmux/tmux.git
synced 2025-11-04 17:46:05 +00:00
Add support for the OSC 4 and OSC 104 palette setting escape sequences,
from S Gilles.
This commit is contained in:
@@ -1253,6 +1253,7 @@ window_copy_write_line(struct window_pane *wp, struct screen_write_ctx *ctx,
|
||||
size_t size = 0;
|
||||
|
||||
style_apply(&gc, oo, "mode-style");
|
||||
gc.flags |= GRID_FLAG_NOPALETTE;
|
||||
|
||||
if (py == 0) {
|
||||
size = xsnprintf(hdr, sizeof hdr,
|
||||
@@ -1455,6 +1456,7 @@ window_copy_update_selection(struct window_pane *wp, int may_redraw)
|
||||
|
||||
/* Set colours and selection. */
|
||||
style_apply(&gc, oo, "mode-style");
|
||||
gc.flags |= GRID_FLAG_NOPALETTE;
|
||||
screen_set_selection(s, sx, sy, endsx, endsy, data->rectflag, &gc);
|
||||
|
||||
if (data->rectflag && may_redraw) {
|
||||
|
||||
Reference in New Issue
Block a user