From abf240768f8314b74ec022bad10fb9a6536cea61 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 11 Mar 2013 01:25:18 -0400 Subject: [PATCH] Cleanups when suspending/resuming with smcup/rmcup --- src/frontend/stmclient.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/stmclient.cc b/src/frontend/stmclient.cc index 05477ed..e841f38 100644 --- a/src/frontend/stmclient.cc +++ b/src/frontend/stmclient.cc @@ -275,14 +275,14 @@ bool STMClient::process_user_input( int fd ) exit( 1 ); } - /* clear screen */ - printf( "\033[H\033[2J" ); - printf( "\033[37;44m[mosh is suspended.]\n\033[m" ); + printf( "\n\033[37;44m[mosh is suspended.]\033[m\n" ); fflush( NULL ); /* actually suspend */ raise( SIGTSTP ); + + resume(); } else if ( the_byte == '^' ) { /* Emulation sequence to type Ctrl-^ is Ctrl-^ ^ */ network->get_current_state().push_back( Parser::UserByte( 0x1E ) );