Skip to content

Commit

Permalink
Cleanups when suspending/resuming with smcup/rmcup
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Mar 11, 2013
1 parent c6a8427 commit abf2407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/stmclient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit abf2407

Please sign in to comment.