Support for \e[3J to clear the history. Also send the corresponding

terminfo code (E3) before locking.
This commit is contained in:
Nicholas Marriott
2011-10-23 10:16:14 +00:00
parent 7ff4cf9405
commit f0aad68aee
5 changed files with 26 additions and 0 deletions

View File

@ -237,6 +237,7 @@ server_lock_client(struct client *c)
tty_stop_tty(&c->tty);
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_SMCUP));
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_CLEAR));
tty_raw(&c->tty, tty_term_string(c->tty.term, TTYC_E3));
c->flags |= CLIENT_SUSPENDED;
server_write_client(c, MSG_LOCK, &lockdata, sizeof lockdata);