aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-07-02 02:52:13 +0000
committerTiago Cunha <tcunha@gmx.com>2010-07-02 02:52:13 +0000
commite4573de97b40a7aaebcdcd2a4b699b5f995fe506 (patch)
tree1aea2b2ab724c59657ca3b87d5b47dfbc400dd3b /tmux.h
parent63e76b555d8f3d40f9905fb65a58f6e7509d399d (diff)
downloadrtmux-e4573de97b40a7aaebcdcd2a4b699b5f995fe506.tar.gz
rtmux-e4573de97b40a7aaebcdcd2a4b699b5f995fe506.tar.bz2
rtmux-e4573de97b40a7aaebcdcd2a4b699b5f995fe506.zip
Sync OpenBSD patchset 731:
Send all three of stdin, stdout, stderr from the client to the server, so that commands can directly make use of them. This means that load-buffer and save-buffer can have "-" as the file to read from stdin or write to stdout. This is a protocol version bump so the tmux server will need to be restarted after upgrade (or an older client used).
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/tmux.h b/tmux.h
index 5b377ea4..e2c1c0aa 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.566 2010-07-02 02:49:19 tcunha Exp $ */
+/* $Id: tmux.h,v 1.567 2010-07-02 02:52:13 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -21,7 +21,7 @@
#include "config.h"
-#define PROTOCOL_VERSION 5
+#define PROTOCOL_VERSION 6
#include <sys/param.h>
#include <sys/time.h>
@@ -67,7 +67,6 @@ extern char **environ;
*/
#define COMMAND_LENGTH 2048 /* packed argv size */
#define TERMINAL_LENGTH 128 /* length of TERM environment variable */
-#define PRINT_LENGTH 512 /* printed error/message size */
#define ENVIRON_LENGTH 1024 /* environment variable length */
/*
@@ -372,7 +371,9 @@ enum msgtype {
MSG_ENVIRON,
MSG_UNLOCK,
MSG_LOCK,
- MSG_SHELL
+ MSG_SHELL,
+ MSG_STDERR,
+ MSG_STDOUT,
};
/*
@@ -380,10 +381,6 @@ enum msgtype {
*
* Don't forget to bump PROTOCOL_VERSION if any of these change!
*/
-struct msg_print_data {
- char msg[PRINT_LENGTH];
-};
-
struct msg_command_data {
pid_t pid; /* pid from $TMUX or -1 */
u_int idx; /* index from $TMUX */
@@ -1079,6 +1076,10 @@ struct client {
char *cwd;
struct tty tty;
+ FILE *stdin_file;
+ FILE *stdout_file;
+ FILE *stderr_file;
+
struct event repeat_timer;
struct timeval status_timer;