Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanups when suspending/resuming with smcup/rmcup

  • Loading branch information...
commit abf240768f8314b74ec022bad10fb9a6536cea61 1 parent c6a8427
@keithw authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/frontend/stmclient.cc
View
6 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 ) );
Please sign in to comment.
Something went wrong with that request. Please try again.