diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-09-23 12:03:30 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-09-23 12:03:30 +0000 |
commit | 9200a0be7a515cd04c1a05d120002c73932cbf98 (patch) | |
tree | 6e82962815963a9962c1029d7d97898fb0dae98b /tmux.h | |
parent | 18ea820cb0f1e7d9936c89abf15130e40efc956b (diff) | |
download | rtmux-9200a0be7a515cd04c1a05d120002c73932cbf98.tar.gz rtmux-9200a0be7a515cd04c1a05d120002c73932cbf98.tar.bz2 rtmux-9200a0be7a515cd04c1a05d120002c73932cbf98.zip |
Support -c like sh(1) to execute a command, useful when tmux is a login
shell. Suggested by halex@.
This includes another protocol version increase (the last for now) so again
restart the tmux server before upgrading.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -19,7 +19,7 @@ #ifndef TMUX_H #define TMUX_H -#define PROTOCOL_VERSION 4 +#define PROTOCOL_VERSION 5 #include <sys/param.h> #include <sys/time.h> @@ -130,6 +130,7 @@ enum key_code { /* Function keys. */ KEYC_F1, + KEYC_F2, KEYC_F3, KEYC_F4, @@ -308,7 +309,8 @@ enum msgtype { MSG_WAKEUP, MSG_ENVIRON, MSG_UNLOCK, - MSG_LOCK + MSG_LOCK, + MSG_SHELL }; /* @@ -348,6 +350,10 @@ struct msg_environ_data { char var[ENVIRON_LENGTH]; }; +struct msg_shell_data { + char shell[MAXPATHLEN]; +}; + /* Mode key commands. */ enum mode_key_cmd { MODEKEY_NONE, |