aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-06-18 15:23:01 +0000
committerTiago Cunha <tcunha@gmx.com>2012-06-18 15:23:01 +0000
commit0159c74a32dabec337334252121d5d2a060adc21 (patch)
treeff4ae385fa98562285e484af2b2c66a619dc3577 /tmux.h
parenta401420273490717de3f6fe8f7f0915692be72a3 (diff)
downloadrtmux-0159c74a32dabec337334252121d5d2a060adc21.tar.gz
rtmux-0159c74a32dabec337334252121d5d2a060adc21.tar.bz2
rtmux-0159c74a32dabec337334252121d5d2a060adc21.zip
Sync OpenBSD patchset 1138:
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 d0dc1223..2281f9fb 100644
--- a/tmux.h
+++ b/tmux.h
@@ -429,6 +429,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;
};
@@ -1228,6 +1230,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;
@@ -2127,6 +2130,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;