aboutsummaryrefslogtreecommitdiffstats
path: root/pw.1
diff options
context:
space:
mode:
Diffstat (limited to 'pw.1')
-rw-r--r--pw.135
1 files changed, 21 insertions, 14 deletions
diff --git a/pw.1 b/pw.1
index 5fe9000..6effc43 100644
--- a/pw.1
+++ b/pw.1
@@ -177,33 +177,40 @@ and
also terminate colon mode without executing a command. Colon commands
are documented in the COLON COMMANDS section below.
-.IP \fB/\fP\fIpattern\fP
-Activate head trigger mode if a non-empty
+.IP "\fB/\fP\fIpattern\fP, \fB?\fP\fIpattern\fP"
+Activate trigger mode if a non-empty
.I pattern
is specified, or else cancel trigger mode if an empty pattern is
-specified. Under head trigger mode,
-the display refreshes only when the most recent line in the FIFO
-matches the specified
+specified. The
+.B /
+command specifies
+.I "head trigger"
+mode, whereas
+.B ?
+specifies
+.I "tail trigger"
+mode.
+Under head trigger mode,
+the display refreshes only when the most recent line ("head line")
+in the FIFO matches the specified
.IR pattern .
-That line at the head of the FIFO is the one which will appear at
+The head line is the one which will appear at
the bottom of the display, since newer lines appear at the bottom
and scroll out toward the top.
In head trigger mode, the status string
.BI "TRIG (/" pattern ")"
appears, showing the pattern preceded by a slash.
-
-.IP \fB?\fP\fIpattern\fP
-Activate tail trigger mode if a non-empty
-.I pattern
-is specified, or else cancel trigger mode if an empty pattern is
-specified. Under tail trigger mode,
-the display refreshes only when the least recent line in the FIFO
+Under tail trigger mode,
+the display refreshes only when the least recent line ("tail line") in the FIFO
matches the specified
.IR pattern .
-That line at the tail of the FIFO is the one which will appear at
+That line is the one which will appear at
the top of the display. In tail trigger mode, the status string
.BI "TRIG (?" pattern ")"
appears, showing the pattern preceded by a question mark.
+The
+.I pattern
+is an extended regular expression (ERE).
.SH COLON COMMANDS