=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.h,v retrieving revision 1.684 retrieving revision 1.685 diff -c -r1.684 -r1.685 *** src/usr.bin/tmux/tmux.h 2017/01/06 11:57:03 1.684 --- src/usr.bin/tmux/tmux.h 2017/01/07 15:28:13 1.685 *************** *** 1,4 **** ! /* $OpenBSD: tmux.h,v 1.684 2017/01/06 11:57:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tmux.h,v 1.685 2017/01/07 15:28:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 576,581 **** --- 576,582 ---- #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 *************** *** 829,834 **** --- 830,837 ---- struct grid_cell colgc; + int *palette; + int pipe_fd; struct bufferevent *pipe_event; size_t pipe_off; *************** *** 857,862 **** --- 860,870 ---- 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; *************** *** 2126,2131 **** --- 2134,2142 ---- 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 *);