aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-11 21:28:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-11 21:28:11 +0000
commit4310282a4c52f1885ae2eb80b106c9c03564a0b8 (patch)
tree21099e70cdd49e4dc08084bbd758e64677728774 /tmux.h
parent4ec8ade11c23eec4b652cdd7ea47ddf346b7be93 (diff)
downloadrtmux-4310282a4c52f1885ae2eb80b106c9c03564a0b8.tar.gz
rtmux-4310282a4c52f1885ae2eb80b106c9c03564a0b8.tar.bz2
rtmux-4310282a4c52f1885ae2eb80b106c9c03564a0b8.zip
Have the client pass its stdin fd to the server when identifying itself and
have the server use that rather than reopening the tty. If the fd isn't given, use the old behaviour (so no need for a version change). This allows tmux to be used as the shell, so also change so that when working out the command to execute if default-command is empty (the default), tmux will try not execute itself.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 53590eaf..9b2e6642 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1158,7 +1158,7 @@ void tty_putcode2(struct tty *, enum tty_code_code, int, int);
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 *, char *, char *);
+void tty_init(struct tty *, int, char *, char *);
void tty_start_tty(struct tty *);
void tty_stop_tty(struct tty *);
void tty_detect_utf8(struct tty *);