version 1.1030, 2020/05/16 15:27:08 |
version 1.1031, 2020/05/16 15:34:08 |
|
|
struct options; |
struct options; |
struct options_array_item; |
struct options_array_item; |
struct options_entry; |
struct options_entry; |
|
struct screen_write_collect_item; |
|
struct screen_write_collect_line; |
|
struct screen_write_ctx; |
struct session; |
struct session; |
|
struct tty_ctx; |
struct tmuxpeer; |
struct tmuxpeer; |
struct tmuxproc; |
struct tmuxproc; |
struct winlink; |
struct winlink; |
|
|
}; |
}; |
|
|
/* Screen write context. */ |
/* Screen write context. */ |
struct screen_write_collect_item; |
typedef void (*screen_write_init_ctx_cb)(struct screen_write_ctx *, |
struct screen_write_collect_line; |
struct tty_ctx *); |
struct screen_write_ctx { |
struct screen_write_ctx { |
struct window_pane *wp; |
struct window_pane *wp; |
struct screen *s; |
struct screen *s; |
int sync; |
int sync; |
|
|
|
screen_write_init_ctx_cb init_ctx_cb; |
|
void *arg; |
|
|
struct screen_write_collect_item *item; |
struct screen_write_collect_item *item; |
u_int scrolled; |
u_int scrolled; |
u_int bg; |
u_int bg; |
|
|
struct termios tio; |
struct termios tio; |
|
|
struct grid_cell cell; |
struct grid_cell cell; |
|
|
int last_wp; |
|
struct grid_cell last_cell; |
struct grid_cell last_cell; |
|
|
#define TTY_NOCURSOR 0x1 |
#define TTY_NOCURSOR 0x1 |
|
|
}; |
}; |
|
|
/* TTY command context. */ |
/* TTY command context. */ |
|
typedef void (*tty_ctx_redraw_cb)(const struct tty_ctx *); |
|
typedef int (*tty_ctx_set_client_cb)(struct tty_ctx *, struct client *); |
struct tty_ctx { |
struct tty_ctx { |
struct window_pane *wp; |
struct screen *s; |
|
|
|
tty_ctx_redraw_cb redraw_cb; |
|
tty_ctx_set_client_cb set_client_cb; |
|
void *arg; |
|
|
const struct grid_cell *cell; |
const struct grid_cell *cell; |
int wrapped; |
int wrapped; |
|
|
|
|
/* Target region (usually pane) offset and size. */ |
/* Target region (usually pane) offset and size. */ |
u_int xoff; |
u_int xoff; |
u_int yoff; |
u_int yoff; |
|
u_int rxoff; |
|
u_int ryoff; |
u_int sx; |
u_int sx; |
u_int sy; |
u_int sy; |
|
|
/* The background colour used for clearing (erasing). */ |
/* The background colour used for clearing (erasing). */ |
u_int bg; |
u_int bg; |
|
|
|
/* The default colours and palette. */ |
|
struct grid_cell defaults; |
|
int *palette; |
|
|
/* Containing region (usually window) offset and size. */ |
/* Containing region (usually window) offset and size. */ |
int bigger; |
int bigger; |
u_int wox; |
u_int wox; |
|
|
typedef int (*prompt_input_cb)(struct client *, void *, const char *, int); |
typedef int (*prompt_input_cb)(struct client *, void *, const char *, int); |
typedef void (*prompt_free_cb)(void *); |
typedef void (*prompt_free_cb)(void *); |
typedef int (*overlay_check_cb)(struct client *, u_int, u_int); |
typedef int (*overlay_check_cb)(struct client *, u_int, u_int); |
typedef int (*overlay_mode_cb)(struct client *, u_int *, u_int *); |
typedef struct screen *(*overlay_mode_cb)(struct client *, u_int *, u_int *); |
typedef void (*overlay_draw_cb)(struct client *, struct screen_redraw_ctx *); |
typedef void (*overlay_draw_cb)(struct client *, struct screen_redraw_ctx *); |
typedef int (*overlay_key_cb)(struct client *, struct key_event *); |
typedef int (*overlay_key_cb)(struct client *, struct key_event *); |
typedef void (*overlay_free_cb)(struct client *); |
typedef void (*overlay_free_cb)(struct client *); |
|
|
void tty_update_client_offset(struct client *); |
void tty_update_client_offset(struct client *); |
void tty_raw(struct tty *, const char *); |
void tty_raw(struct tty *, const char *); |
void tty_attributes(struct tty *, const struct grid_cell *, |
void tty_attributes(struct tty *, const struct grid_cell *, |
struct window_pane *); |
const struct grid_cell *, int *); |
void tty_reset(struct tty *); |
void tty_reset(struct tty *); |
void tty_region_off(struct tty *); |
void tty_region_off(struct tty *); |
void tty_margin_off(struct tty *); |
void tty_margin_off(struct tty *); |
|
|
void tty_stop_tty(struct tty *); |
void tty_stop_tty(struct tty *); |
void tty_set_title(struct tty *, const char *); |
void tty_set_title(struct tty *, const char *); |
void tty_update_mode(struct tty *, int, struct screen *); |
void tty_update_mode(struct tty *, int, struct screen *); |
void tty_draw_line(struct tty *, struct window_pane *, struct screen *, |
void tty_draw_line(struct tty *, struct screen *, u_int, u_int, u_int, |
u_int, u_int, u_int, u_int, u_int); |
u_int, u_int, const struct grid_cell *, int *); |
void tty_sync_start(struct tty *); |
void tty_sync_start(struct tty *); |
void tty_sync_end(struct tty *); |
void tty_sync_end(struct tty *); |
int tty_open(struct tty *, char **); |
int tty_open(struct tty *, char **); |
|
|
void tty_cmd_setselection(struct tty *, const struct tty_ctx *); |
void tty_cmd_setselection(struct tty *, const struct tty_ctx *); |
void tty_cmd_rawstring(struct tty *, const struct tty_ctx *); |
void tty_cmd_rawstring(struct tty *, const struct tty_ctx *); |
void tty_cmd_syncstart(struct tty *, const struct tty_ctx *); |
void tty_cmd_syncstart(struct tty *, const struct tty_ctx *); |
|
void tty_default_colours(struct grid_cell *, struct window_pane *); |
|
|
/* tty-term.c */ |
/* tty-term.c */ |
extern struct tty_terms tty_terms; |
extern struct tty_terms tty_terms; |
|
|
struct evbuffer *input_pending(struct input_ctx *); |
struct evbuffer *input_pending(struct input_ctx *); |
void input_parse_pane(struct window_pane *); |
void input_parse_pane(struct window_pane *); |
void input_parse_buffer(struct window_pane *, u_char *, size_t); |
void input_parse_buffer(struct window_pane *, u_char *, size_t); |
void input_parse_screen(struct input_ctx *, struct screen *, u_char *, |
void input_parse_screen(struct input_ctx *, struct screen *, |
size_t); |
screen_write_init_ctx_cb, void *, u_char *, size_t); |
|
|
/* input-key.c */ |
/* input-key.c */ |
int input_key_pane(struct window_pane *, key_code, struct mouse_event *); |
int input_key_pane(struct window_pane *, key_code, struct mouse_event *); |
|
|
/* screen-write.c */ |
/* screen-write.c */ |
void screen_write_make_list(struct screen *); |
void screen_write_make_list(struct screen *); |
void screen_write_free_list(struct screen *); |
void screen_write_free_list(struct screen *); |
void screen_write_start(struct screen_write_ctx *, struct window_pane *, |
void screen_write_start_pane(struct screen_write_ctx *, |
struct screen *); |
struct window_pane *, struct screen *); |
|
void screen_write_start(struct screen_write_ctx *, struct screen *); |
|
void screen_write_start_callback(struct screen_write_ctx *, struct screen *, |
|
screen_write_init_ctx_cb, void *); |
void screen_write_stop(struct screen_write_ctx *); |
void screen_write_stop(struct screen_write_ctx *); |
void screen_write_reset(struct screen_write_ctx *); |
void screen_write_reset(struct screen_write_ctx *); |
size_t printflike(1, 2) screen_write_strlen(const char *, ...); |
size_t printflike(1, 2) screen_write_strlen(const char *, ...); |
|
|
void screen_write_cell(struct screen_write_ctx *, const struct grid_cell *); |
void screen_write_cell(struct screen_write_ctx *, const struct grid_cell *); |
void screen_write_setselection(struct screen_write_ctx *, u_char *, u_int); |
void screen_write_setselection(struct screen_write_ctx *, u_char *, u_int); |
void screen_write_rawstring(struct screen_write_ctx *, u_char *, u_int); |
void screen_write_rawstring(struct screen_write_ctx *, u_char *, u_int); |
|
void screen_write_alternateon(struct screen_write_ctx *, |
|
struct grid_cell *, int); |
|
void screen_write_alternateoff(struct screen_write_ctx *, |
|
struct grid_cell *, int); |
|
|
/* screen-redraw.c */ |
/* screen-redraw.c */ |
void screen_redraw_screen(struct client *); |
void screen_redraw_screen(struct client *); |
|
|
struct window_pane *window_pane_find_by_id(u_int); |
struct window_pane *window_pane_find_by_id(u_int); |
int window_pane_destroy_ready(struct window_pane *); |
int window_pane_destroy_ready(struct window_pane *); |
void window_pane_resize(struct window_pane *, u_int, u_int); |
void window_pane_resize(struct window_pane *, u_int, u_int); |
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_set_palette(struct window_pane *, u_int, int); |
void window_pane_unset_palette(struct window_pane *, u_int); |
void window_pane_unset_palette(struct window_pane *, u_int); |
void window_pane_reset_palette(struct window_pane *); |
void window_pane_reset_palette(struct window_pane *); |