summaryrefslogtreecommitdiff
path: root/usr.bin/less/opttbl.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-04-14 14:33:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-04-14 14:33:58 +0000
commitea522e21eac177af59e43049f56f453b837606b7 (patch)
tree27ff45643e9e0c47a8e114cb5c4de5930bf76aa8 /usr.bin/less/opttbl.c
parentb6983e22ce2ae5a86257c287e78e56c37831bf73 (diff)
o go back to using a help file instead of embedding it in the binary
o deal with HELPFILE not being defined o add a SMALL definition to make a smaller less for the boot floppies This still needs to be pared down a bit for the SMALL case
Diffstat (limited to 'usr.bin/less/opttbl.c')
-rw-r--r--usr.bin/less/opttbl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/less/opttbl.c b/usr.bin/less/opttbl.c
index d1c23c3eecf..f3f45c8b014 100644
--- a/usr.bin/less/opttbl.c
+++ b/usr.bin/less/opttbl.c
@@ -36,6 +36,7 @@ public int forw_scroll; /* Repaint screen on forward movement */
public int caseless; /* Do "caseless" searches */
public int linenums; /* Use line numbers */
public int autobuf; /* Automatically allocate buffers as needed */
+public int nohelp; /* Disable the HELP command */
public int bufspace; /* Max buffer space per file (K) */
public int ctldisp; /* Send control chars to screen untranslated */
public int force_open; /* Open the file even if not regular file */
@@ -216,6 +217,14 @@ static struct loption option[] =
NULL
}
},
+ { 'H', NULL,
+ BOOL|NO_TOGGLE, OPT_OFF, &nohelp, NULL,
+ {
+ "Allow help command",
+ "Don't allow help command",
+ NULL
+ }
+ },
{ 'i', &i_optname,
TRIPLE|HL_REPAINT, OPT_OFF, &caseless, opt_i,
{