"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lesskey.nro" between
less-561.tar.gz and less-562.tar.gz

About: less is a file pager (a program that displays text files similar to "more" or "pg"). Beta version.

lesskey.nro  (less-561):lesskey.nro  (less-562)
'\" t '\" t
.TH LESSKEY 1 "Version 561: 11 May 2020" .TH LESSKEY 1 "Version 562: 19 May 2020"
.SH NAME .SH NAME
lesskey \- specify key bindings for less lesskey \- specify key bindings for less
.SH SYNOPSIS .SH SYNOPSIS
.B "lesskey [\-o output] [\-\-] [input]" .B "lesskey [\-o output] [\-\-] [input]"
.br .br
.B "lesskey [\-\-output=output] [\-\-] [input]" .B "lesskey [\-\-output=output] [\-\-] [input]"
.br .br
.B "lesskey \-V" .B "lesskey \-V"
.br .br
.B "lesskey \-\-version" .B "lesskey \-\-version"
.SH DESCRIPTION .SH DESCRIPTION
.I Lesskey .I Lesskey
is used to specify a set of key bindings to be used by is used to specify a set of key bindings to be used by
.I less. .IR less .
The input file is a text file which describes the key bindings. The input file is a text file which describes the key bindings.
If the input file is "\-", standard input is read. If the input file is "\-", standard input is read.
If no input file is specified, a standard filename is used If no input file is specified, a standard filename is used
as the name of the input file, which depends on the system being used: as the name of the input file, which depends on the system being used:
On Unix systems, $HOME/.lesskey is used; On Unix systems, $HOME/.lesskey is used;
on MS-DOS systems, $HOME/_lesskey is used; on MS-DOS systems, $HOME/_lesskey is used;
and on OS/2 systems $HOME/lesskey.ini is used, and on OS/2 systems $HOME/lesskey.ini is used,
or $INIT/lesskey.ini if $HOME is undefined. or $INIT/lesskey.ini if $HOME is undefined.
The output file is a binary file which is used by The output file is a binary file which is used by
.I less. .IR less .
If no output file is specified, If no output file is specified,
and the environment variable LESSKEY is set, and the environment variable LESSKEY is set,
the value of LESSKEY is used as the name of the output file. 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, Otherwise, a standard filename is used as the name of the output file,
which depends on the system being used: which depends on the system being used:
On Unix and OS-9 systems, $HOME/.less is used; On Unix and OS-9 systems, $HOME/.less is used;
on MS-DOS systems, $HOME/_less is used; on MS-DOS systems, $HOME/_less is used;
and on OS/2 systems, $HOME/less.ini is used, and on OS/2 systems, $HOME/less.ini is used,
or $INIT/less.ini if $HOME is undefined. or $INIT/less.ini if $HOME is undefined.
If the output file already exists, If the output file already exists,
skipping to change at line 116 skipping to change at line 116
.IP \ekx .IP \ekx
DELETE DELETE
.PP .PP
A backslash followed by any other character indicates that character is A backslash followed by any other character indicates that character is
to be taken literally. to be taken literally.
Characters which must be preceded by backslash include Characters which must be preceded by backslash include
caret, space, tab and the backslash itself. caret, space, tab and the backslash itself.
.PP .PP
An action may be followed by an "extra" string. An action may be followed by an "extra" string.
When such a command is entered while running When such a command is entered while running
.I less, .IR less ,
the action is performed, and then the extra the action is performed, and then the extra
string is parsed, just as if it were typed in to string is parsed, just as if it were typed in to
.I less. .IR less .
This feature can be used in certain cases to extend This feature can be used in certain cases to extend
the functionality of a command. the functionality of a command.
For example, see the "{" and ":t" commands in the example below. For example, see the "{" and ":t" commands in the example below.
The extra string has a special meaning for the "quit" action: The extra string has a special meaning for the "quit" action:
when when
.I less .I less
quits, first character of the extra string is used as its exit status. quits, first character of the extra string is used as its exit status.
. .
.SH EXAMPLE .SH EXAMPLE
The following input file describes the set of The following input file describes the set of
skipping to change at line 343 skipping to change at line 343
.SH "LESS ENVIRONMENT VARIABLES" .SH "LESS ENVIRONMENT VARIABLES"
The environment variable section begins with the line The environment variable section begins with the line
.sp .sp
#env #env
.sp .sp
Following this line is a list of environment variable assignments. Following this line is a list of environment variable assignments.
Each line consists of an environment variable name, an equals sign (=) Each line consists of an environment variable name, an equals sign (=)
and the value to be assigned to the environment variable. and the value to be assigned to the environment variable.
White space before and after the equals sign is ignored. White space before and after the equals sign is ignored.
Variables assigned in this way are visible only to Variables assigned in this way are visible only to
.I less. .IR less .
If a variable is specified in the system environment and also in a If a variable is specified in the system environment and also in a
lesskey file, the value in the lesskey file takes precedence. lesskey file, the value in the lesskey file takes precedence.
Although the lesskey file can be used to override variables set in the Although the lesskey file can be used to override variables set in the
environment, the main purpose of assigning variables in the lesskey file environment, the main purpose of assigning variables in the lesskey file
is simply to have all is simply to have all
.I less .I less
configuration information stored in one file. configuration information stored in one file.
. .
.SH EXAMPLE .SH EXAMPLE
The following input file sets the \-i option whenever The following input file sets the \-i option whenever
 End of changes. 6 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)