summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-10-23 10:16:14 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-10-23 10:16:14 +0000
commitf0aad68aeef493954d3a840bea134abd22b37c2d (patch)
treea02b92fcc0ce1bb8ad8883ff631ebb1e593d28ca /server-fn.c
parent7ff4cf94050e11517bb6fa89be2f5f4c85af12e3 (diff)
Support for \e[3J to clear the history. Also send the corresponding
terminfo code (E3) before locking.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server-fn.c b/server-fn.c
index e697af77..c8f85cd0 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -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);