"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tmux.h" between
tmux-3.2.tar.gz and tmux-3.2a.tar.gz

About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.

tmux.h  (tmux-3.2):tmux.h  (tmux-3.2a)
skipping to change at line 112 skipping to change at line 112
#define ALERT_NONE 0 #define ALERT_NONE 0
#define ALERT_ANY 1 #define ALERT_ANY 1
#define ALERT_CURRENT 2 #define ALERT_CURRENT 2
#define ALERT_OTHER 3 #define ALERT_OTHER 3
/* Visual option values. */ /* Visual option values. */
#define VISUAL_OFF 0 #define VISUAL_OFF 0
#define VISUAL_ON 1 #define VISUAL_ON 1
#define VISUAL_BOTH 2 #define VISUAL_BOTH 2
/* Special key codes. */ /* No key or unknown key. */
#define KEYC_NONE 0x00ff000000000ULL #define KEYC_NONE 0x000ff000000000ULL
#define KEYC_UNKNOWN 0x00fe000000000ULL #define KEYC_UNKNOWN 0x000fe000000000ULL
#define KEYC_BASE 0x0001000000000ULL
#define KEYC_USER 0x0002000000000ULL /*
* Base for special (that is, not Unicode) keys. An enum must be at most a
* signed int, so these are based in the highest Unicode PUA.
*/
#define KEYC_BASE 0x0000000010e000ULL
#define KEYC_USER 0x0000000010f000ULL
/* Key modifier bits. */ /* Key modifier bits. */
#define KEYC_META 0x00100000000000ULL #define KEYC_META 0x00100000000000ULL
#define KEYC_CTRL 0x00200000000000ULL #define KEYC_CTRL 0x00200000000000ULL
#define KEYC_SHIFT 0x00400000000000ULL #define KEYC_SHIFT 0x00400000000000ULL
/* Key flag bits. */ /* Key flag bits. */
#define KEYC_LITERAL 0x01000000000000ULL #define KEYC_LITERAL 0x01000000000000ULL
#define KEYC_KEYPAD 0x02000000000000ULL #define KEYC_KEYPAD 0x02000000000000ULL
#define KEYC_CURSOR 0x04000000000000ULL #define KEYC_CURSOR 0x04000000000000ULL
skipping to change at line 139 skipping to change at line 144
/* Masks for key bits. */ /* Masks for key bits. */
#define KEYC_MASK_MODIFIERS 0x00f00000000000ULL #define KEYC_MASK_MODIFIERS 0x00f00000000000ULL
#define KEYC_MASK_FLAGS 0xff000000000000ULL #define KEYC_MASK_FLAGS 0xff000000000000ULL
#define KEYC_MASK_KEY 0x000fffffffffffULL #define KEYC_MASK_KEY 0x000fffffffffffULL
/* Available user keys. */ /* Available user keys. */
#define KEYC_NUSER 1000 #define KEYC_NUSER 1000
/* Is this a mouse key? */ /* Is this a mouse key? */
#define KEYC_IS_MOUSE(key) (((key) & KEYC_MASK_KEY) >= KEYC_MOUSE && \ #define KEYC_IS_MOUSE(key) \
((key) & KEYC_MASK_KEY) < KEYC_BSPACE) (((key) & KEYC_MASK_KEY) >= KEYC_MOUSE && \
((key) & KEYC_MASK_KEY) < KEYC_BSPACE)
/* Is this a Unicode key? */
#define KEYC_IS_UNICODE(key) \
(((key) & KEYC_MASK_KEY) > 0x7f && \
(((key) & KEYC_MASK_KEY) < KEYC_BASE || \
((key) & KEYC_MASK_KEY) >= KEYC_BASE_END))
/* Multiple click timeout. */ /* Multiple click timeout. */
#define KEYC_CLICK_TIMEOUT 300 #define KEYC_CLICK_TIMEOUT 300
/* Mouse key codes. */ /* Mouse key codes. */
#define KEYC_MOUSE_KEY(name) \ #define KEYC_MOUSE_KEY(name) \
KEYC_ ## name ## _PANE, \ KEYC_ ## name ## _PANE, \
KEYC_ ## name ## _STATUS, \ KEYC_ ## name ## _STATUS, \
KEYC_ ## name ## _STATUS_LEFT, \ KEYC_ ## name ## _STATUS_LEFT, \
KEYC_ ## name ## _STATUS_RIGHT, \ KEYC_ ## name ## _STATUS_RIGHT, \
skipping to change at line 162 skipping to change at line 174
KEYC_ ## name ## _BORDER KEYC_ ## name ## _BORDER
#define KEYC_MOUSE_STRING(name, s) \ #define KEYC_MOUSE_STRING(name, s) \
{ #s "Pane", KEYC_ ## name ## _PANE }, \ { #s "Pane", KEYC_ ## name ## _PANE }, \
{ #s "Status", KEYC_ ## name ## _STATUS }, \ { #s "Status", KEYC_ ## name ## _STATUS }, \
{ #s "StatusLeft", KEYC_ ## name ## _STATUS_LEFT }, \ { #s "StatusLeft", KEYC_ ## name ## _STATUS_LEFT }, \
{ #s "StatusRight", KEYC_ ## name ## _STATUS_RIGHT }, \ { #s "StatusRight", KEYC_ ## name ## _STATUS_RIGHT }, \
{ #s "StatusDefault", KEYC_ ## name ## _STATUS_DEFAULT }, \ { #s "StatusDefault", KEYC_ ## name ## _STATUS_DEFAULT }, \
{ #s "Border", KEYC_ ## name ## _BORDER } { #s "Border", KEYC_ ## name ## _BORDER }
/* /*
* A single key. This can be ASCII or Unicode or one of the keys starting at * A single key. This can be ASCII or Unicode or one of the keys between
* KEYC_BASE. * KEYC_BASE and KEYC_BASE_END.
*/ */
typedef unsigned long long key_code; typedef unsigned long long key_code;
/* Special key codes. */ /* Special key codes. */
enum { enum {
/* Focus events. */ /* Focus events. */
KEYC_FOCUS_IN = KEYC_BASE, KEYC_FOCUS_IN = KEYC_BASE,
KEYC_FOCUS_OUT, KEYC_FOCUS_OUT,
/* "Any" key, used if not found in key table. */ /* "Any" key, used if not found in key table. */
skipping to change at line 256 skipping to change at line 268
KEYC_KP_PLUS, KEYC_KP_PLUS,
KEYC_KP_FOUR, KEYC_KP_FOUR,
KEYC_KP_FIVE, KEYC_KP_FIVE,
KEYC_KP_SIX, KEYC_KP_SIX,
KEYC_KP_ONE, KEYC_KP_ONE,
KEYC_KP_TWO, KEYC_KP_TWO,
KEYC_KP_THREE, KEYC_KP_THREE,
KEYC_KP_ENTER, KEYC_KP_ENTER,
KEYC_KP_ZERO, KEYC_KP_ZERO,
KEYC_KP_PERIOD, KEYC_KP_PERIOD,
/* End of special keys. */
KEYC_BASE_END
}; };
/* Termcap codes. */ /* Termcap codes. */
enum tty_code_code { enum tty_code_code {
TTYC_ACSC, TTYC_ACSC,
TTYC_AM, TTYC_AM,
TTYC_AX, TTYC_AX,
TTYC_BCE, TTYC_BCE,
TTYC_BEL, TTYC_BEL,
TTYC_BIDI, TTYC_BIDI,
skipping to change at line 455 skipping to change at line 470
TTYC_KRIT7, TTYC_KRIT7,
TTYC_KUP2, TTYC_KUP2,
TTYC_KUP3, TTYC_KUP3,
TTYC_KUP4, TTYC_KUP4,
TTYC_KUP5, TTYC_KUP5,
TTYC_KUP6, TTYC_KUP6,
TTYC_KUP7, TTYC_KUP7,
TTYC_MS, TTYC_MS,
TTYC_OL, TTYC_OL,
TTYC_OP, TTYC_OP,
TTYC_RECT,
TTYC_REV, TTYC_REV,
TTYC_RGB, TTYC_RGB,
TTYC_RI, TTYC_RI,
TTYC_RIN, TTYC_RIN,
TTYC_RMACS, TTYC_RMACS,
TTYC_RMCUP, TTYC_RMCUP,
TTYC_RMKX, TTYC_RMKX,
TTYC_SE, TTYC_SE,
TTYC_SETAB, TTYC_SETAB,
TTYC_SETAF, TTYC_SETAF,
skipping to change at line 921 skipping to change at line 937
struct window_mode_entry { struct window_mode_entry {
struct window_pane *wp; struct window_pane *wp;
struct window_pane *swp; struct window_pane *swp;
const struct window_mode *mode; const struct window_mode *mode;
void *data; void *data;
struct screen *screen; struct screen *screen;
u_int prefix; u_int prefix;
TAILQ_ENTRY (window_mode_entry) entry; TAILQ_ENTRY(window_mode_entry) entry;
}; };
/* Offsets into pane buffer. */ /* Offsets into pane buffer. */
struct window_pane_offset { struct window_pane_offset {
size_t used; size_t used;
}; };
/* Queued pane resize. */
struct window_pane_resize {
u_int sx;
u_int sy;
u_int osx;
u_int osy;
TAILQ_ENTRY(window_pane_resize) entry;
};
TAILQ_HEAD(window_pane_resizes, window_pane_resize);
/* Child window structure. */ /* Child window structure. */
struct window_pane { struct window_pane {
u_int id; u_int id;
u_int active_point; u_int active_point;
struct window *window; struct window *window;
struct options *options; struct options *options;
struct layout_cell *layout_cell; struct layout_cell *layout_cell;
struct layout_cell *saved_layout_cell; struct layout_cell *saved_layout_cell;
skipping to change at line 953 skipping to change at line 981
u_int xoff; u_int xoff;
u_int yoff; u_int yoff;
int fg; int fg;
int bg; int bg;
int flags; int flags;
#define PANE_REDRAW 0x1 #define PANE_REDRAW 0x1
#define PANE_DROP 0x2 #define PANE_DROP 0x2
#define PANE_FOCUSED 0x4 #define PANE_FOCUSED 0x4
#define PANE_RESIZE 0x8 /* 0x8 unused */
#define PANE_RESIZEFORCE 0x10 /* 0x10 unused */
#define PANE_FOCUSPUSH 0x20 #define PANE_FOCUSPUSH 0x20
#define PANE_INPUTOFF 0x40 #define PANE_INPUTOFF 0x40
#define PANE_CHANGED 0x80 #define PANE_CHANGED 0x80
#define PANE_EXITED 0x100 #define PANE_EXITED 0x100
#define PANE_STATUSREADY 0x200 #define PANE_STATUSREADY 0x200
#define PANE_STATUSDRAWN 0x400 #define PANE_STATUSDRAWN 0x400
#define PANE_EMPTY 0x800 #define PANE_EMPTY 0x800
#define PANE_STYLECHANGED 0x1000 #define PANE_STYLECHANGED 0x1000
#define PANE_RESIZENOW 0x2000
int argc; int argc;
char **argv; char **argv;
char *shell; char *shell;
char *cwd; char *cwd;
pid_t pid; pid_t pid;
char tty[TTY_NAME_MAX]; char tty[TTY_NAME_MAX];
int status; int status;
int fd; int fd;
struct bufferevent *event; struct bufferevent *event;
struct window_pane_offset offset; struct window_pane_offset offset;
size_t base_offset; size_t base_offset;
struct window_pane_resizes resize_queue;
struct event resize_timer; struct event resize_timer;
struct event force_timer;
struct input_ctx *ictx; struct input_ctx *ictx;
struct grid_cell cached_gc; struct grid_cell cached_gc;
struct grid_cell cached_active_gc; struct grid_cell cached_active_gc;
int *palette; int *palette;
int pipe_fd; int pipe_fd;
struct bufferevent *pipe_event; struct bufferevent *pipe_event;
struct window_pane_offset pipe_offset; struct window_pane_offset pipe_offset;
struct screen *screen; struct screen *screen;
struct screen base; struct screen base;
struct screen status_screen; struct screen status_screen;
size_t status_size; size_t status_size;
TAILQ_HEAD (, window_mode_entry) modes; TAILQ_HEAD(, window_mode_entry) modes;
char *searchstr; char *searchstr;
int searchregex; int searchregex;
int border_gc_set; int border_gc_set;
struct grid_cell border_gc; struct grid_cell border_gc;
TAILQ_ENTRY(window_pane) entry; TAILQ_ENTRY(window_pane) entry;
RB_ENTRY(window_pane) tree_entry; RB_ENTRY(window_pane) tree_entry;
}; };
skipping to change at line 2758 skipping to change at line 2785
struct window_pane *window_get_active_at(struct window *, u_int, u_int); struct window_pane *window_get_active_at(struct window *, u_int, u_int);
struct window_pane *window_find_string(struct window *, const char *); struct window_pane *window_find_string(struct window *, const char *);
int window_has_pane(struct window *, struct window_pane *); int window_has_pane(struct window *, struct window_pane *);
int window_set_active_pane(struct window *, struct window_pane *, int window_set_active_pane(struct window *, struct window_pane *,
int); int);
void window_redraw_active_switch(struct window *, void window_redraw_active_switch(struct window *,
struct window_pane *); struct window_pane *);
struct window_pane *window_add_pane(struct window *, struct window_pane *, struct window_pane *window_add_pane(struct window *, struct window_pane *,
u_int, int); u_int, int);
void window_resize(struct window *, u_int, u_int, int, int); void window_resize(struct window *, u_int, u_int, int, int);
void window_pane_send_resize(struct window_pane *, int); void window_pane_send_resize(struct window_pane *, u_int, u_int);
int window_zoom(struct window_pane *); int window_zoom(struct window_pane *);
int window_unzoom(struct window *); int window_unzoom(struct window *);
int window_push_zoom(struct window *, int, int); int window_push_zoom(struct window *, int, int);
int window_pop_zoom(struct window *); int window_pop_zoom(struct window *);
void window_lost_pane(struct window *, struct window_pane *); void window_lost_pane(struct window *, struct window_pane *);
void window_remove_pane(struct window *, struct window_pane *); void window_remove_pane(struct window *, struct window_pane *);
struct window_pane *window_pane_at_index(struct window *, u_int); struct window_pane *window_pane_at_index(struct window *, u_int);
struct window_pane *window_pane_next_by_number(struct window *, struct window_pane *window_pane_next_by_number(struct window *,
struct window_pane *, u_int); struct window_pane *, u_int);
struct window_pane *window_pane_previous_by_number(struct window *, struct window_pane *window_pane_previous_by_number(struct window *,
 End of changes. 13 change blocks. 
16 lines changed or deleted 43 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)