diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-27 20:36:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-27 20:36:20 +0000 |
commit | fa05d7fd6f584b84527984ed1dbe5e79b4f740db (patch) | |
tree | b8354d31a894c33636ebf6303738894cfca30774 /usr.bin/tmux | |
parent | 474ff44a0100ad7b22dbf8bcb99c2da634e78761 (diff) |
Set the terminal blocking again earlier, before sending the reset
sequences.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index f8edbe3cbc9..239cc87d2fa 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.102 2011/03/26 19:07:33 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.103 2011/03/27 20:36:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -230,6 +230,8 @@ tty_stop_tty(struct tty *tty) if (tcsetattr(tty->fd, TCSANOW, &tty->tio) == -1) return; + setblocking(tty->fd, 1); + tty_raw(tty, tty_term_string2(tty->term, TTYC_CSR, 0, ws.ws_row - 1)); if (tty_use_acs(tty)) tty_raw(tty, tty_term_string(tty->term, TTYC_RMACS)); @@ -242,8 +244,6 @@ tty_stop_tty(struct tty *tty) tty_raw(tty, "\033[?1000l"); tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP)); - - setblocking(tty->fd, 1); } void |