aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw.c b/pw.c
index ef0ccbd..29b4cb5 100644
--- a/pw.c
+++ b/pw.c
@@ -390,7 +390,7 @@ static int grexec(grep *gr, const char *line)
static void clrline(unsigned stat)
{
if ((stat & stat_bkgnd) == 0)
- printf("\r\033[J");
+ printf("\r\033[K");
}
static void clreol(int nl)