summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-25 10:03:24 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-25 10:03:24 +0000
commit62db3c8efe70020e2555e3f34e8c07d0b2106077 (patch)
tree7a7c231842134de4800a0ae1d88142ebb52829bf /server-client.c
parentefa06643b02ca7cdc306d7ebcf1e38f04d2edc62 (diff)
Send DSC 1000p at the beginning of a -CC client's lifetime and ST and
the end, from George Nachman.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 64af442a..e590d219 100644
--- a/server-client.c
+++ b/server-client.c
@@ -957,6 +957,8 @@ server_client_msg_identify(
if (data->flags & IDENTIFY_CONTROL) {
c->stdin_callback = control_callback;
c->flags |= CLIENT_CONTROL;
+ if (data->flags & IDENTIFY_TERMIOS)
+ evbuffer_add_printf(c->stdout_data, "\033P1000p");
server_write_client(c, MSG_STDIN, NULL, 0);
c->tty.fd = -1;