Handle the RGB colour escape sequence (\033[38;2;<r>;<g>;<b>m and 48;2)

like xterm(1) does, by mapping to the nearest in the 256 colour palette.
This commit is contained in:
nicm
2015-06-05 22:33:39 +00:00
parent 1cb073d48e
commit 55b96a5bd5
3 changed files with 85 additions and 41 deletions

1
tmux.h
View File

@ -1953,6 +1953,7 @@ char *xterm_keys_lookup(int);
int xterm_keys_find(const char *, size_t, size_t *, int *);
/* colour.c */
int colour_find_rgb(u_char, u_char, u_char);
void colour_set_fg(struct grid_cell *, int);
void colour_set_bg(struct grid_cell *, int);
const char *colour_tostring(int);