aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pw.c b/pw.c
index 7f39674..96181f0 100644
--- a/pw.c
+++ b/pw.c
@@ -204,7 +204,9 @@ static void redraw(char **circbuf, int nlines, int hpos,
snapshot[i] = dsref(circbuf[i]);
}
} else {
- clrline();
+ printf("\r\033[%dA\033[J", snaplines);
+ for (int i = 0; i < snaplines; i++)
+ drawline(snapshot[i], hpos, columns);
}
drawstatus(stat, cmd);
}