commit 692baf0ec55f89891590c4af358e1574097baf7f parent 2516ad8b1028c2a7a8c5f11270059c313750877c Author: sin <sin@2f30.org> Date: Wed, 4 Sep 2013 11:48:43 +0100 Clear screen before cmd invocation Diffstat:
M | watch.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/watch.c b/watch.c @@ -38,6 +38,7 @@ main(int argc, char *argv[]) } for (;;) { + printf("\e[2J\e[H"); fflush(NULL); system(cmd); sleep(interval);