version 1.114, 2009/09/23 06:12:58 |
version 1.115, 2009/09/23 06:18:48 |
|
|
#ifndef TMUX_H |
#ifndef TMUX_H |
#define TMUX_H |
#define TMUX_H |
|
|
#define PROTOCOL_VERSION 3 |
#define PROTOCOL_VERSION 4 |
|
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/time.h> |
#include <sys/time.h> |
|
|
MSG_RESIZE, |
MSG_RESIZE, |
MSG_SHUTDOWN, |
MSG_SHUTDOWN, |
MSG_SUSPEND, |
MSG_SUSPEND, |
MSG_UNLOCK, |
|
MSG_VERSION, |
MSG_VERSION, |
MSG_WAKEUP, |
MSG_WAKEUP, |
MSG_ENVIRON |
MSG_ENVIRON, |
|
MSG_UNLOCK, |
|
MSG_LOCK |
}; |
}; |
|
|
/* |
/* |
|
|
int flags; |
int flags; |
}; |
}; |
|
|
struct msg_unlock_data { |
struct msg_lock_data { |
char pass[PASS_MAX]; |
char cmd[COMMAND_LENGTH]; |
}; |
}; |
|
|
struct msg_environ_data { |
struct msg_environ_data { |
|
|
extern struct options global_w_options; |
extern struct options global_w_options; |
extern struct environ global_environ; |
extern struct environ global_environ; |
extern char *cfg_file; |
extern char *cfg_file; |
extern int server_locked; |
|
extern struct passwd *server_locked_pw; |
|
extern u_int password_failures; |
|
extern time_t password_backoff; |
|
extern char *server_password; |
|
extern time_t server_activity; |
extern time_t server_activity; |
extern int debug_level; |
extern int debug_level; |
extern int be_quiet; |
extern int be_quiet; |
|
|
void environ_update(const char *, struct environ *, struct environ *); |
void environ_update(const char *, struct environ *, struct environ *); |
|
|
/* tty.c */ |
/* tty.c */ |
|
void tty_raw(struct tty *, const char *); |
u_char tty_get_acs(struct tty *, u_char); |
u_char tty_get_acs(struct tty *, u_char); |
void tty_attributes(struct tty *, const struct grid_cell *); |
void tty_attributes(struct tty *, const struct grid_cell *); |
void tty_reset(struct tty *); |
void tty_reset(struct tty *); |
|
|
extern const struct cmd_entry cmd_set_buffer_entry; |
extern const struct cmd_entry cmd_set_buffer_entry; |
extern const struct cmd_entry cmd_set_environment_entry; |
extern const struct cmd_entry cmd_set_environment_entry; |
extern const struct cmd_entry cmd_set_option_entry; |
extern const struct cmd_entry cmd_set_option_entry; |
extern const struct cmd_entry cmd_set_password_entry; |
|
extern const struct cmd_entry cmd_set_window_option_entry; |
extern const struct cmd_entry cmd_set_window_option_entry; |
extern const struct cmd_entry cmd_show_buffer_entry; |
extern const struct cmd_entry cmd_show_buffer_entry; |
extern const struct cmd_entry cmd_show_environment_entry; |
extern const struct cmd_entry cmd_show_environment_entry; |