Clear screen before cmd invocation

This commit is contained in:
sin 2013-09-04 11:48:43 +01:00
parent 2516ad8b10
commit 692baf0ec5

View File

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