summaryrefslogtreecommitdiffstats
path: root/contrib/less/lesskey.man
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-04 01:42:54 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-04 01:42:54 +0000
commit7672cb6e48e2ed472cbd72caaa0eb155608a644d (patch)
treeee770081db4ef1d4b6022e0608a222ea35319caa /contrib/less/lesskey.man
parent5297f4bc59da861bbe3beb5ee12839fa05e79882 (diff)
downloadFreeBSD-src-7672cb6e48e2ed472cbd72caaa0eb155608a644d.zip
FreeBSD-src-7672cb6e48e2ed472cbd72caaa0eb155608a644d.tar.gz
/home/delphij/m
Diffstat (limited to 'contrib/less/lesskey.man')
-rw-r--r--contrib/less/lesskey.man74
1 files changed, 37 insertions, 37 deletions
diff --git a/contrib/less/lesskey.man b/contrib/less/lesskey.man
index 4730df4..2b614a5 100644
--- a/contrib/less/lesskey.man
+++ b/contrib/less/lesskey.man
@@ -2,37 +2,37 @@ LESSKEY(1) LESSKEY(1)
-NNAAMMEE
+NAME
lesskey - specify key bindings for less
-SSYYNNOOPPSSIISS
- lleesssskkeeyy [[--oo oouuttppuutt]] [[----]] [[iinnppuutt]]
- lleesssskkeeyy [[----oouuttppuutt==oouuttppuutt]] [[----]] [[iinnppuutt]]
- lleesssskkeeyy --VV
- lleesssskkeeyy ----vveerrssiioonn
+SYNOPSIS
+ lesskey [-o output] [--] [input]
+ lesskey [--output=output] [--] [input]
+ lesskey -V
+ lesskey --version
-DDEESSCCRRIIPPTTIIOONN
- _L_e_s_s_k_e_y is used to specify a set of key bindings to be used by _l_e_s_s_.
+DESCRIPTION
+ Lesskey is used to specify a set of key bindings to be used by less.
The input file is a text file which describes the key bindings, If the
input file is "-", standard input is read. If no input file is speci-
fied, a standard filename is used as the name of the input file, which
depends on the system being used: On Unix systems, $HOME/.lesskey is
used; on MS-DOS systems, $HOME/_lesskey is used; and on OS/2 systems
$HOME/lesskey.ini is used, or $INIT/lesskey.ini if $HOME is undefined.
- The output file is a binary file which is used by _l_e_s_s_. If no output
+ The output file is a binary file which is used by less. If no output
file is specified, and the environment variable LESSKEY is set, the
value of LESSKEY is used as the name of the output file. Otherwise, a
standard filename is used as the name of the output file, which depends
on the system being used: On Unix and OS-9 systems, $HOME/.less is
used; on MS-DOS systems, $HOME/_less is used; and on OS/2 systems,
$HOME/less.ini is used, or $INIT/less.ini if $HOME is undefined. If
- the output file already exists, _l_e_s_s_k_e_y will overwrite it.
+ the output file already exists, lesskey will overwrite it.
- The -V or --version option causes _l_e_s_s_k_e_y to print its version number
+ The -V or --version option causes lesskey to print its version number
and immediately exit. If -V or --version is present, other options and
arguments are ignored.
- The input file consists of one or more _s_e_c_t_i_o_n_s_. Each section starts
+ The input file consists of one or more sections. Each section starts
with a line that identifies the type of section. Possible sections
are:
@@ -48,7 +48,7 @@ DDEESSCCRRIIPPTTIIOONN
except for the special section header lines.
-CCOOMMMMAANNDD SSEECCTTIIOONN
+COMMAND SECTION
The command section begins with the line
#command
@@ -56,13 +56,13 @@ CCOOMMMMAANNDD SSEECCTTIIOONN
If the command section is the first section in the file, this line may
be omitted. The command section consists of lines of the form:
- _s_t_r_i_n_g <whitespace> _a_c_t_i_o_n [extra-string] <newline>
+ string <whitespace> action [extra-string] <newline>
Whitespace is any sequence of one or more spaces and/or tabs. The
- _s_t_r_i_n_g is the command key(s) which invoke the action. The _s_t_r_i_n_g may
- be a single command key, or a sequence of up to 15 keys. The _a_c_t_i_o_n is
+ string is the command key(s) which invoke the action. The string may
+ be a single command key, or a sequence of up to 15 keys. The action is
the name of the less action, from the list below. The characters in
- the _s_t_r_i_n_g may appear literally, or be prefixed by a caret to indicate
+ the string may appear literally, or be prefixed by a caret to indicate
a control key. A backslash followed by one to three octal digits may
be used to specify a character by its octal value. A backslash fol-
lowed by certain characters specifies input characters as follows:
@@ -100,15 +100,15 @@ CCOOMMMMAANNDD SSEECCTTIIOONN
include caret, space, tab and the backslash itself.
An action may be followed by an "extra" string. When such a command is
- entered while running _l_e_s_s_, the action is performed, and then the extra
- string is parsed, just as if it were typed in to _l_e_s_s_. This feature
+ entered while running less, the action is performed, and then the extra
+ string is parsed, just as if it were typed in to less. This feature
can be used in certain cases to extend the functionality of a command.
For example, see the "{" and ":t" commands in the example below. The
- extra string has a special meaning for the "quit" action: when _l_e_s_s
+ extra string has a special meaning for the "quit" action: when less
quits, first character of the extra string is used as its exit status.
-EEXXAAMMPPLLEE
+EXAMPLE
The following input file describes the set of default command keys used
by less:
@@ -223,12 +223,12 @@ EEXXAAMMPPLLEE
ZZ quit
-PPRREECCEEDDEENNCCEE
- Commands specified by _l_e_s_s_k_e_y take precedence over the default com-
+PRECEDENCE
+ Commands specified by lesskey take precedence over the default com-
mands. A default command key may be disabled by including it in the
input file with the action "invalid". Alternatively, a key may be
defined to do nothing by using the action "noaction". "noaction" is
- similar to "invalid", but _l_e_s_s will give an error beep for an "invalid"
+ similar to "invalid", but less will give an error beep for an "invalid"
command, but not for a "noaction" command. In addition, ALL default
commands may be disabled by adding this control line to the input file:
@@ -243,7 +243,7 @@ PPRREECCEEDDEENNCCEE
command can lead to frustration.
-LLIINNEE EEDDIITTIINNGG SSEECCTTIIOONN
+LINE EDITING SECTION
The line-editing section begins with the line:
#line-edit
@@ -254,7 +254,7 @@ LLIINNEE EEDDIITTIINNGG SSEECCTTIIOONN
of a list of keys and actions, one per line as in the example below.
-EEXXAAMMPPLLEE
+EXAMPLE
The following input file describes the set of default line-editing keys
used by less:
@@ -289,7 +289,7 @@ EEXXAAMMPPLLEE
-LLEESSSS EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
+LESS ENVIRONMENT VARIABLES
The environment variable section begins with the line
#env
@@ -298,16 +298,16 @@ LLEESSSS EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
Each line consists of an environment variable name, an equals sign (=)
and the value to be assigned to the environment variable. White space
before and after the equals sign is ignored. Variables assigned in
- this way are visible only to _l_e_s_s_. If a variable is specified in the
+ this way are visible only to less. If a variable is specified in the
system environment and also in a lesskey file, the value in the lesskey
file takes precedence. Although the lesskey file can be used to over-
ride variables set in the environment, the main purpose of assigning
- variables in the lesskey file is simply to have all _l_e_s_s configuration
+ variables in the lesskey file is simply to have all less configuration
information stored in one file.
-EEXXAAMMPPLLEE
- The following input file sets the -i option whenever _l_e_s_s is run, and
+EXAMPLE
+ The following input file sets the -i option whenever less is run, and
specifies the character set to be "latin1":
#env
@@ -316,11 +316,11 @@ EEXXAAMMPPLLEE
-SSEEEE AALLSSOO
+SEE ALSO
less(1)
-WWAARRNNIINNGGSS
+WARNINGS
It is not possible to specify special keys, such as uparrow, in a key-
board-independent manner. The only way to specify such keys is to
specify the escape sequence which a particular keyboard sends when such
@@ -331,8 +331,8 @@ WWAARRNNIINNGGSS
represented as \340 in a lesskey file.
-CCOOPPYYRRIIGGHHTT
- Copyright (C) 2004 Mark Nudelman
+COPYRIGHT
+ Copyright (C) 2000-2007 Mark Nudelman
lesskey is part of the GNU project and is free software; you can redis-
tribute it and/or modify it under the terms of the GNU General Public
@@ -349,7 +349,7 @@ CCOOPPYYRRIIGGHHTT
Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-AAUUTTHHOORR
+AUTHOR
Mark Nudelman <markn@greenwoodsoftware.com>
Send bug reports or comments to the above address or to bug-
less@gnu.org.
@@ -357,4 +357,4 @@ AAUUTTHHOORR
- Version 394: 03 Dec 2005 LESSKEY(1)
+ Version 403: 25 May 2007 LESSKEY(1)
OpenPOWER on IntegriCloud