aboutsummaryrefslogtreecommitdiffstats
path: root/pw.1
diff options
context:
space:
mode:
Diffstat (limited to 'pw.1')
-rw-r--r--pw.117
1 files changed, 16 insertions, 1 deletions
diff --git a/pw.1 b/pw.1
index 15f3d2f..5a580db 100644
--- a/pw.1
+++ b/pw.1
@@ -148,7 +148,10 @@ command.
The commands are:
.IP "\fBq\fP, \fBCtrl-C\fP"
-Quit the program.
+Quit the program. Must be used multiple times in succession if a quit
+count greater than 1 is in effect. (See the
+.B -q
+option).
.IP "\fBl\fP, \fILeft Arrow\fP"
Scroll the display to the left.
@@ -571,6 +574,18 @@ and staying in the interactive mode. This is useful when the last portion
of the input is of interest, and contains long lines that require
horizontal scrolling.
+.IP "\fB-q\fP \fIinteger\fP"
+Install a quit count specified by
+.I integer
+which must be positive. The quit count determines how many times the
+.B q
+or
+.B Ctrl-C
+commands have to be issued in succession before
+.I pw
+will quit. This is a safeguard against quitting accidentally. The default
+is 1: the commands quit immediately.
+
.IP \fB-E\fP
Enable extended regular expressions (EREs). By default, regular expressions
processed by