aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-23 15:18:56 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-23 15:18:56 +0000
commit5be3fb86b9225842515f79a611a44d587814bd4c (patch)
tree88f4ef4bc24ee53dad55e025a7aaddbf335aa813 /tmux.h
parent4dd332c95e0c439ae9532ffa391cd13eb769af01 (diff)
downloadrtmux-5be3fb86b9225842515f79a611a44d587814bd4c.tar.gz
rtmux-5be3fb86b9225842515f79a611a44d587814bd4c.tar.bz2
rtmux-5be3fb86b9225842515f79a611a44d587814bd4c.zip
Sync OpenBSD patchset 350:
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.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 95f7dc2c..3c1f26b9 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.453 2009-09-23 15:00:09 tcunha Exp $ */
+/* $Id: tmux.h,v 1.454 2009-09-23 15:18:56 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -21,7 +21,7 @@
#include "config.h"
-#define PROTOCOL_VERSION 4
+#define PROTOCOL_VERSION 5
#include <sys/param.h>
#include <sys/time.h>
@@ -128,6 +128,7 @@ enum key_code {
/* Function keys. */
KEYC_F1,
+
KEYC_F2,
KEYC_F3,
KEYC_F4,
@@ -306,7 +307,8 @@ enum msgtype {
MSG_WAKEUP,
MSG_ENVIRON,
MSG_UNLOCK,
- MSG_LOCK
+ MSG_LOCK,
+ MSG_SHELL
};
/*
@@ -346,6 +348,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,