Add a skeleton mode to tmux (called "control mode") that let's tmux

commands be sent and output received on stdout. This can be used to
integrate with other terminal emulators and should allow some other
things to be made simpler later. More to come so doesn't do much yet and
deliberately not documented.
This commit is contained in:
Nicholas Marriott
2012-06-18 13:16:42 +00:00
parent 7c39850d1f
commit 2942eca895
8 changed files with 191 additions and 5 deletions

6
tmux.h
View File

@ -433,6 +433,8 @@ struct msg_identify_data {
#define IDENTIFY_UTF8 0x1
#define IDENTIFY_256COLOURS 0x2
#define IDENTIFY_88COLOURS 0x4
#define IDENTIFY_CONTROL 0x8
#define IDENTIFY_TERMIOS 0x10
int flags;
};
@ -1232,6 +1234,7 @@ struct client {
#define CLIENT_BORDERS 0x400
#define CLIENT_READONLY 0x800
#define CLIENT_REDRAWWINDOW 0x1000
#define CLIENT_CONTROL 0x2000
int flags;
struct event identify_timer;
@ -2131,6 +2134,9 @@ char *default_window_name(struct window *);
void set_signals(void(*)(int, short, void *));
void clear_signals(int);
/* control.c */
void control_callback(struct client *, int, void*);
/* session.c */
extern struct sessions sessions;
extern struct sessions dead_sessions;