From bb28f2cd6687e100e52233c6cc58a1909a11c9b3 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 27 Apr 2022 19:34:42 -0700 Subject: man page: fix small mistakes and improve wording. --- pw.1 | 7 +++++-- pw.c | 4 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pw.1 b/pw.1 index ffcd6ff..23c02a4 100644 --- a/pw.1 +++ b/pw.1 @@ -92,7 +92,7 @@ In this situation, .I pw terminates, unless the .B -d -(do not quit) option has been specified. In this situation, +(do not quit) option has been specified, in which case it .I pw stays in interactive mode. The the end-of-data status is indicated by the string @@ -105,7 +105,7 @@ Lines displayed by .I pw are trimmed not to exceed the number of terminal columns. When a line is trimmed, it is terminated by the -.B > +.B < character to indicate that there are more characters. The display may be scrolled interactively to read the long lines. @@ -122,6 +122,9 @@ to account for the width of East Asian Unicode characters, and such. When the display is scrolled horizontally, the .B > character appears at the start of each line to indicate this state. +Thus, if neither end of a long line is currently visible, then its visible +portion appears delimited by +.BR >...< . .SH COMMANDS diff --git a/pw.c b/pw.c index 96181f0..7f39674 100644 --- a/pw.c +++ b/pw.c @@ -204,9 +204,7 @@ static void redraw(char **circbuf, int nlines, int hpos, snapshot[i] = dsref(circbuf[i]); } } else { - printf("\r\033[%dA\033[J", snaplines); - for (int i = 0; i < snaplines; i++) - drawline(snapshot[i], hpos, columns); + clrline(); } drawstatus(stat, cmd); } -- cgit v1.2.3