diff options
author | nicm <nicm> | 2023-01-03 11:43:24 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-01-03 11:43:24 +0000 |
commit | a41a92744188ec5c8a8d4ddc100ec15b52d04603 (patch) | |
tree | 1ca299b75a40fad8aba34a14bcefa467869b506d /tmux.h | |
parent | 3fe01ff09c2fe8629ebd5b0f2c2ce3aa5fa33c14 (diff) | |
download | rtmux-a41a92744188ec5c8a8d4ddc100ec15b52d04603.tar.gz rtmux-a41a92744188ec5c8a8d4ddc100ec15b52d04603.tar.bz2 rtmux-a41a92744188ec5c8a8d4ddc100ec15b52d04603.zip |
Query the client terminal for foreground and background colours and if
OSC 10 or 11 is received but no colour has been set inside tmux, return
the colour from the first attached client (probably most people will
have all light or or all dark terminals).
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1380,6 +1380,8 @@ struct tty { u_int osy; int mode; + int fg; + int bg; u_int rlower; u_int rupper; @@ -1411,6 +1413,10 @@ struct tty { #define TTY_HAVEXDA 0x200 #define TTY_SYNCING 0x400 #define TTY_HAVEDA2 0x800 /* Secondary DA. */ +#define TTY_HAVEFG 0x1000 +#define TTY_HAVEBG 0x2000 +#define TTY_ALL_REQUEST_FLAGS \ + (TTY_HAVEDA|TTY_HAVEDA2|TTY_HAVEXDA|TTY_HAVEFG|TTY_HAVEBG) int flags; struct tty_term *term; @@ -2759,6 +2765,7 @@ int colour_fromstring(const char *s); int colour_256toRGB(int); int colour_256to16(int); int colour_byname(const char *); +int colour_parseX11(const char *); void colour_palette_init(struct colour_palette *); void colour_palette_clear(struct colour_palette *); void colour_palette_free(struct colour_palette *); |