version 1.769, 2017/05/15 16:44:04 |
version 1.770, 2017/05/17 15:20:23 |
|
|
}; |
}; |
|
|
/* Client connection. */ |
/* Client connection. */ |
|
typedef int (*prompt_input_cb)(struct client *, void *, const char *, int); |
|
typedef void (*prompt_free_cb)(void *); |
struct client { |
struct client { |
const char *name; |
const char *name; |
struct tmuxpeer *peer; |
struct tmuxpeer *peer; |
|
|
struct key_table *keytable; |
struct key_table *keytable; |
|
|
struct event identify_timer; |
struct event identify_timer; |
void (*identify_callback)(struct client *, struct window_pane *); |
void (*identify_callback)(struct client *, |
|
struct window_pane *); |
void *identify_callback_data; |
void *identify_callback_data; |
|
|
char *message_string; |
char *message_string; |
|
|
char *prompt_string; |
char *prompt_string; |
struct utf8_data *prompt_buffer; |
struct utf8_data *prompt_buffer; |
size_t prompt_index; |
size_t prompt_index; |
int (*prompt_callbackfn)(void *, const char *, int); |
prompt_input_cb prompt_inputcb; |
void (*prompt_freefn)(void *); |
prompt_free_cb prompt_freecb; |
void *prompt_data; |
void *prompt_data; |
u_int prompt_hindex; |
u_int prompt_hindex; |
enum { PROMPT_ENTRY, PROMPT_COMMAND } prompt_mode; |
enum { PROMPT_ENTRY, PROMPT_COMMAND } prompt_mode; |
|
|
void status_message_clear(struct client *); |
void status_message_clear(struct client *); |
int status_message_redraw(struct client *); |
int status_message_redraw(struct client *); |
void status_prompt_set(struct client *, const char *, const char *, |
void status_prompt_set(struct client *, const char *, const char *, |
int (*)(void *, const char *, int), void (*)(void *), void *, int); |
prompt_input_cb, prompt_free_cb, void *, int); |
void status_prompt_clear(struct client *); |
void status_prompt_clear(struct client *); |
int status_prompt_redraw(struct client *); |
int status_prompt_redraw(struct client *); |
int status_prompt_key(struct client *, key_code); |
int status_prompt_key(struct client *, key_code); |