aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-18 12:09:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-18 12:09:42 +0000
commit8ea49712fd4c9f158128832e6c93308afeb1bd4d (patch)
treea7a4e84c2722ba9f3848f4bbe377c1e38ed14d1c /tmux.h
parent273d63040ab6f0124518fcdb1ad9f2f10c84c2de (diff)
downloadrtmux-8ea49712fd4c9f158128832e6c93308afeb1bd4d.tar.gz
rtmux-8ea49712fd4c9f158128832e6c93308afeb1bd4d.tar.bz2
rtmux-8ea49712fd4c9f158128832e6c93308afeb1bd4d.zip
suspend-client command and suspend client when ^Z key binding is used.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 0994c322..eea4446b 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.236 2009-01-17 18:38:12 nicm Exp $ */
+/* $Id: tmux.h,v 1.237 2009-01-18 12:09:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -358,6 +358,8 @@ enum hdrtype {
MSG_READY,
MSG_RESIZE,
MSG_UNLOCK,
+ MSG_SUSPEND,
+ MSG_WAKEUP,
};
/* Message header structure. */
@@ -759,6 +761,7 @@ struct client {
#define CLIENT_REDRAW 0x8
#define CLIENT_STATUS 0x10
#define CLIENT_REPEAT 0x20 /* allow command to repeat within repeat time */
+#define CLIENT_SUSPENDED 0x40
int flags;
char *message_string;
@@ -959,6 +962,7 @@ char *fgetln(FILE *, size_t *);
/* tmux.c */
extern volatile sig_atomic_t sigwinch;
extern volatile sig_atomic_t sigterm;
+extern volatile sig_atomic_t sigcont;
extern struct options global_options;
extern struct options global_window_options;
extern char *cfg_file;
@@ -972,6 +976,7 @@ extern const char *socket_path;
void logfile(const char *);
void siginit(void);
void sigreset(void);
+void sighandler(int);
/* cfg.c */
int load_cfg(const char *, char **x);
@@ -1001,10 +1006,12 @@ void tty_putcode2(struct tty *, enum tty_code_code, int, int);
void tty_puts(struct tty *, const char *);
void tty_putc(struct tty *, char);
void tty_init(struct tty *, char *, char *);
+void tty_start_tty(struct tty *);
+void tty_stop_tty(struct tty *);
void tty_set_title(struct tty *, const char *);
int tty_open(struct tty *, char **);
-void tty_close(struct tty *);
-void tty_free(struct tty *);
+void tty_close(struct tty *, int);
+void tty_free(struct tty *, int);
void tty_write(struct tty *,
struct screen *, u_int, enum tty_cmd, ...);
void tty_vwrite(struct tty *,
@@ -1135,6 +1142,7 @@ extern const struct cmd_entry cmd_show_window_options_entry;
extern const struct cmd_entry cmd_source_file_entry;
extern const struct cmd_entry cmd_split_window_entry;
extern const struct cmd_entry cmd_start_server_entry;
+extern const struct cmd_entry cmd_suspend_client_entry;
extern const struct cmd_entry cmd_swap_window_entry;
extern const struct cmd_entry cmd_switch_client_entry;
extern const struct cmd_entry cmd_unbind_key_entry;