'\" t
TH LESSKEY 1 "Version 643: 20 Jul 2023"
SH NAME
lesskey \- customize key bindings for less
SH "SYNOPSIS (deprecated)"
B "lesskey [\-o output] [\-\-] [input]"
br
B "lesskey [\-\-output=output] [\-\-] [input]"
br
B "lesskey \-V"
br
B "lesskey \-\-version"
SH SCOPE
This document describes the format of the
B lesskey
source file, which is used by
B less
version 582 and later.
In previous versions of
BR less ,
a separate program called
B lesskey
was used to compile the
B lesskey
source file into a format understood by
BR less .
This compilation step is no longer required and the
B lesskey
program is therefore deprecated, although the file format remains supported by
B less
itself.
PP
SH DESCRIPTION
A
B lesskey
file specifies a set of key bindings and environment variables
to be used by subsequent invocations of
BR less .
SH FILE FORMAT
The input file consists of one or more
IR sections .
Each section starts with a line that identifies the type of section.
Possible sections are:
IP #command
Customizes command key bindings.
IP #line-edit
Customizes line-editing key bindings.
IP #env
Defines environment variables.
PP
Blank lines and lines which start with a hash mark (#) are ignored,
except as noted below.