Optimize clear screen command

Replaced system call with inline ANSI/VT100 clear screen code sequence
This commit is contained in:
Martin Lund 2017-10-01 09:51:29 +02:00
parent 9c7e4ba06e
commit 07255c94b9

View file

@ -134,7 +134,9 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
break;
case KEY_L:
status = system("clear");
/* Clear screen using ANSI/VT100 escape code */
printf("\033c");
fflush(stdout);
break;
case KEY_Q: