aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2023-01-03 11:43:24 +0000
committernicm <nicm>2023-01-03 11:43:24 +0000
commita41a92744188ec5c8a8d4ddc100ec15b52d04603 (patch)
tree1ca299b75a40fad8aba34a14bcefa467869b506d /tmux.h
parent3fe01ff09c2fe8629ebd5b0f2c2ce3aa5fa33c14 (diff)
downloadrtmux-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index dac23ebb..7d7a7609 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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 *);