From 692baf0ec55f89891590c4af358e1574097baf7f Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 4 Sep 2013 11:48:43 +0100 Subject: [PATCH] Clear screen before cmd invocation --- watch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/watch.c b/watch.c index cf59356..b4f6e84 100644 --- 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);