# HG changeset patch # User Matt Johnston # Date 1365600764 -28800 # Node ID b2d4205b089782e1a1624267d43fc8335b505f29 # Parent 2400b8685762e483b13b37f7b1f6e1c86f8a4667 reset terminal modes before printing a message diff -r 2400b8685762 -r b2d4205b0897 cli-chansession.c --- a/cli-chansession.c Thu Apr 04 07:51:13 2013 +0800 +++ b/cli-chansession.c Wed Apr 10 21:32:44 2013 +0800 @@ -82,14 +82,12 @@ /* If the main session goes, we close it up */ static void cli_closechansess(struct Channel *UNUSED(channel)) { + cli_tty_cleanup(); /* Restore tty modes etc */ /* This channel hasn't gone yet, so we have > 1 */ if (ses.chancount > 1) { dropbear_log(LOG_INFO, "Waiting for other channels to close..."); } - - cli_tty_cleanup(); /* Restore tty modes etc */ - } void cli_start_send_channel_request(struct Channel *channel,