diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-06 22:18:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2011-04-06 22:18:05 +0000 |
commit | 129f0dc8934d77084fffcc3a4e11ea97469d97db (patch) | |
tree | dad12b716b1d347b255ea611c534be69feda5d05 /tty.c | |
parent | 2b508f7f6b20575ecbdae377c10fac0b04497d94 (diff) | |
download | rtmux-129f0dc8934d77084fffcc3a4e11ea97469d97db.tar.gz rtmux-129f0dc8934d77084fffcc3a4e11ea97469d97db.tar.bz2 rtmux-129f0dc8934d77084fffcc3a4e11ea97469d97db.zip |
|PatchSet 872
|Date: 2011/03/27 21:36:19
|Author: nicm
|Branch: HEAD
|Tag: (none)
|Log:
|Set the terminal blocking again earlier, before sending the reset
|sequences.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.206 2011-03-24 17:03:29 micahcowan Exp $ */ +/* $Id: tty.c,v 1.207 2011-04-06 22:18:05 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 |