aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2004-09-09 22:51:50 +0000
committerDimitri Sokolyuk <demon@dim13.org>2004-09-09 22:51:50 +0000
commitb71dbc057a11fbbc67c365f8664e53facb0b3a3c (patch)
treea22b54a5761f11a2bdafcbcd585070563b8b3b8d
parentf4456a19455528192ce3cd4e5b1d3470b74d85cb (diff)
fix screen update at slow terminals
-rw-r--r--watch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/watch.c b/watch.c
index d7c6e2c..861b708 100644
--- a/watch.c
+++ b/watch.c
@@ -24,7 +24,7 @@ static const char copyright[] =
"@(#) Copyright (c) 2003, 2004 demon <demon@vhost.dyndns.org>\n";
static const char rcsid[] =
"$Id$";
-static const char version[] = "0.6.1";
+static const char version[] = "0.6.2";
#include <sys/ioctl.h>
#include <sys/time.h>
@@ -172,7 +172,7 @@ display(int ignored)
FILE *pipe;
(void) ignored;
- clear();
+ move(0,0);
if (f_notitle == 0) {
title();
@@ -186,6 +186,7 @@ display(int ignored)
mvaddstr(line_count++, 0, output);
}
pclose(pipe);
+ clrtobot();
refresh();
}