Clear screen before cmd invocation

This commit is contained in:
sin 2013-09-04 11:48:43 +01:00
parent 2516ad8b10
commit 692baf0ec5
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ main(int argc, char *argv[])
} }
for (;;) { for (;;) {
printf("\e[2J\e[H");
fflush(NULL); fflush(NULL);
system(cmd); system(cmd);
sleep(interval); sleep(interval);