Cleanups when suspending/resuming with smcup/rmcup

This commit is contained in:
Keith Winstein
2013-03-11 01:25:18 -04:00
parent c6a8427d61
commit abf240768f
+3 -3
View File
@@ -275,14 +275,14 @@ bool STMClient::process_user_input( int fd )
exit( 1 ); exit( 1 );
} }
/* clear screen */ printf( "\n\033[37;44m[mosh is suspended.]\033[m\n" );
printf( "\033[H\033[2J" );
printf( "\033[37;44m[mosh is suspended.]\n\033[m" );
fflush( NULL ); fflush( NULL );
/* actually suspend */ /* actually suspend */
raise( SIGTSTP ); raise( SIGTSTP );
resume();
} else if ( the_byte == '^' ) { } else if ( the_byte == '^' ) {
/* Emulation sequence to type Ctrl-^ is Ctrl-^ ^ */ /* Emulation sequence to type Ctrl-^ is Ctrl-^ ^ */
network->get_current_state().push_back( Parser::UserByte( 0x1E ) ); network->get_current_state().push_back( Parser::UserByte( 0x1E ) );