summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-06-18 13:16:42 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-06-18 13:16:42 +0000
commit2942eca8953561cef0764c1775666697ee032c34 (patch)
tree7189077d728a911a5f6e8dac6cfe88824d9dc8a5 /tmux.h
parent7c39850d1f55f101c42a2dd65664691927c459a1 (diff)
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.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 6971fd0f..891b8e3c 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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;