diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-01-07 16:01:17 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-01-07 16:01:17 +0000 |
commit | 29e64a8c648eaf6e1bebf6018066991e032756ab (patch) | |
tree | 441b101753a93a27aa82e5713bd1af4a27d4572f /tmux.h | |
parent | a3428487a787c9ab43cd628338dcc290499891ae (diff) | |
parent | 314e933914de4096c40e623c793049d26484d53a (diff) | |
download | rtmux-29e64a8c648eaf6e1bebf6018066991e032756ab.tar.gz rtmux-29e64a8c648eaf6e1bebf6018066991e032756ab.tar.bz2 rtmux-29e64a8c648eaf6e1bebf6018066991e032756ab.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -578,6 +578,7 @@ enum utf8_state { #define GRID_FLAG_PADDING 0x4 #define GRID_FLAG_EXTENDED 0x8 #define GRID_FLAG_SELECTED 0x10 +#define GRID_FLAG_NOPALETTE 0x20 /* Grid line flags. */ #define GRID_LINE_WRAPPED 0x1 @@ -831,6 +832,8 @@ struct window_pane { struct grid_cell colgc; + int *palette; + int pipe_fd; struct bufferevent *pipe_event; size_t pipe_off; @@ -859,6 +862,11 @@ struct window_pane { TAILQ_HEAD(window_panes, window_pane); RB_HEAD(window_pane_tree, window_pane); +#define WINDOW_PANE_PALETTE_HAS(wp, c) \ + ((wp) != NULL && (wp)->palette != NULL && \ + ((c) < 0x100 || (c) & COLOUR_FLAG_256) && \ + (wp)->palette[(c) & 0xff] != 0) + /* Window structure. */ struct window { u_int id; @@ -2128,6 +2136,9 @@ void window_pane_alternate_on(struct window_pane *, struct grid_cell *, int); void window_pane_alternate_off(struct window_pane *, struct grid_cell *, int); +void window_pane_set_palette(struct window_pane *, u_int, int); +void window_pane_unset_palette(struct window_pane *, u_int); +void window_pane_reset_palette(struct window_pane *); int window_pane_set_mode(struct window_pane *, const struct window_mode *); void window_pane_reset_mode(struct window_pane *); |