aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw.17
-rw-r--r--pw.c4
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);
}