Clear the screen when done (standalone, not telnet).

This commit is contained in:
Peetz0r 2011-12-06 10:54:48 +01:00
parent 322de45995
commit 187a214e50

View File

@ -118,10 +118,10 @@ int digits(int val) {
/* /*
* In the standalone mode, we want to handle an interrupt signal * In the standalone mode, we want to handle an interrupt signal
* (^C) so that we can restore the cursor. * (^C) so that we can restore the cursor and clear the terminal.
*/ */
void SIGINT_handler(int sig){ void SIGINT_handler(int sig){
printf("\033[?25h\033[0m"); printf("\033[?25h\033[0m\033[H\033[2J");
exit(0); exit(0);
} }