Set the terminal blocking again earlier, before sending the reset

sequences.
This commit is contained in:
Nicholas Marriott 2011-03-27 20:36:19 +00:00
parent 7ce8fee4f3
commit 71e8e26ccc

4
tty.c
View File

@ -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