mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Set the terminal blocking again earlier, before sending the reset
sequences.
This commit is contained in:
parent
7ce8fee4f3
commit
71e8e26ccc
4
tty.c
4
tty.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user