aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-23 06:12:58 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-23 06:12:58 +0000
commit962fa20b36cc6d38d9a44612441f3f706c29b71e (patch)
tree67bd9d4f19a42af4dddda24051323e332e56b98f /tmux.h
parent64caf59e84c3ae1c06773bb8ec91165eeedabe6d (diff)
downloadrtmux-962fa20b36cc6d38d9a44612441f3f706c29b71e.tar.gz
rtmux-962fa20b36cc6d38d9a44612441f3f706c29b71e.tar.bz2
rtmux-962fa20b36cc6d38d9a44612441f3f706c29b71e.zip
Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the client
into the server. This is another (the second of four) protocol version changes coming this morning, so again the server should be killed before upgrading.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/tmux.h b/tmux.h
index bdaf5f6e..6325bca2 100644
--- a/tmux.h
+++ b/tmux.h
@@ -19,7 +19,7 @@
#ifndef TMUX_H
#define TMUX_H
-#define PROTOCOL_VERSION 2
+#define PROTOCOL_VERSION 3
#include <sys/param.h>
#include <sys/time.h>
@@ -337,14 +337,6 @@ struct msg_identify_data {
#define IDENTIFY_88COLOURS 0x4
#define IDENTIFY_HASDEFAULTS 0x8
int flags;
-
- u_int sx;
- u_int sy;
-};
-
-struct msg_resize_data {
- u_int sx;
- u_int sy;
};
struct msg_unlock_data {
@@ -1199,6 +1191,7 @@ void tty_puts(struct tty *, const char *);
void tty_putc(struct tty *, u_char);
void tty_pututf8(struct tty *, const struct grid_utf8 *);
void tty_init(struct tty *, int, char *);
+void tty_resize(struct tty *);
void tty_start_tty(struct tty *);
void tty_stop_tty(struct tty *);
void tty_detect_utf8(struct tty *);