version 1.230, 2010/06/27 02:56:59 |
version 1.231, 2010/06/28 22:10:42 |
|
|
#ifndef TMUX_H |
#ifndef TMUX_H |
#define TMUX_H |
#define TMUX_H |
|
|
#define PROTOCOL_VERSION 5 |
#define PROTOCOL_VERSION 6 |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/time.h> |
#include <sys/time.h> |
|
|
*/ |
*/ |
#define COMMAND_LENGTH 2048 /* packed argv size */ |
#define COMMAND_LENGTH 2048 /* packed argv size */ |
#define TERMINAL_LENGTH 128 /* length of TERM environment variable */ |
#define TERMINAL_LENGTH 128 /* length of TERM environment variable */ |
#define PRINT_LENGTH 512 /* printed error/message size */ |
|
#define ENVIRON_LENGTH 1024 /* environment variable length */ |
#define ENVIRON_LENGTH 1024 /* environment variable length */ |
|
|
/* |
/* |
|
|
MSG_ENVIRON, |
MSG_ENVIRON, |
MSG_UNLOCK, |
MSG_UNLOCK, |
MSG_LOCK, |
MSG_LOCK, |
MSG_SHELL |
MSG_SHELL, |
|
MSG_STDERR, |
|
MSG_STDOUT, |
}; |
}; |
|
|
/* |
/* |
|
|
* |
* |
* Don't forget to bump PROTOCOL_VERSION if any of these change! |
* Don't forget to bump PROTOCOL_VERSION if any of these change! |
*/ |
*/ |
struct msg_print_data { |
|
char msg[PRINT_LENGTH]; |
|
}; |
|
|
|
struct msg_command_data { |
struct msg_command_data { |
pid_t pid; /* pid from $TMUX or -1 */ |
pid_t pid; /* pid from $TMUX or -1 */ |
u_int idx; /* index from $TMUX */ |
u_int idx; /* index from $TMUX */ |
|
|
char *cwd; |
char *cwd; |
|
|
struct tty tty; |
struct tty tty; |
|
FILE *stdin_file; |
|
FILE *stdout_file; |
|
FILE *stderr_file; |
|
|
struct event repeat_timer; |
struct event repeat_timer; |
|
|
struct timeval status_timer; |
struct timeval status_timer; |