Clear the screen when done (standalone, not telnet).
This commit is contained in:
parent
322de45995
commit
187a214e50
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user