diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-04-27 19:34:42 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-04-27 19:34:42 -0700 |
commit | bb28f2cd6687e100e52233c6cc58a1909a11c9b3 (patch) | |
tree | 0c2b9fb7c38c2bcf3236a99ccdb16bb87245066b | |
parent | 1c4230a7bcb3f1dbf83a1fb995a938e793734710 (diff) | |
download | pw-bb28f2cd6687e100e52233c6cc58a1909a11c9b3.tar.gz pw-bb28f2cd6687e100e52233c6cc58a1909a11c9b3.tar.bz2 pw-bb28f2cd6687e100e52233c6cc58a1909a11c9b3.zip |
man page: fix small mistakes and improve wording.
-rw-r--r-- | pw.1 | 7 | ||||
-rw-r--r-- | pw.c | 4 |
2 files changed, 6 insertions, 5 deletions
@@ -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 @@ -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); } |