[BACK]Return to lesskey.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/lesskey.1 between version 1.11 and 1.12

version 1.11, 2014/04/25 13:38:21 version 1.12, 2014/11/23 08:01:06
Line 30 
Line 30 
 .Nd specify key bindings for less  .Nd specify key bindings for less
 .Sh SYNOPSIS  .Sh SYNOPSIS
 .Nm lesskey  .Nm lesskey
 .Oo Fl o Ar output  .Op Fl o Ar output | Fl -output Ns = Ns Ar output
 .Pf " | " Fl -output Ns = Ns Ar output Oc  
 .Op Ar input  .Op Ar input
 .Nm lesskey  .Nm lesskey
 .Fl V | -version  .Fl V | -version
Line 109 
Line 108 
 Defines environment variables.  Defines environment variables.
 .El  .El
 .Pp  .Pp
 Blank lines and lines which start with a pound sign (#) are ignored,  Blank lines and lines which start with a pound sign
   .Pq Sq #
   are ignored,
 except for the special section header lines.  except for the special section header lines.
 .Sh COMMAND SECTION  .Sh COMMAND SECTION
 The command section begins with the line  The command section begins with the line
Line 181 
Line 182 
 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  An action may be followed by an additional string.
 .Qq extra  
 string.  
 When such a command is entered while running less,  When such a command is entered while running 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 less.  string is parsed, just as if it were typed into 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  For example, see the
 .Sq {  .Cm {
 and  and
 .Sq :t  .Cm :t
 commands in the example below.  commands in the example below.
 The extra string has a special meaning for the  The extra string has a special meaning for the
 .Qq quit  .Cm quit
 action:  action:
 when less quits,  when less quits,
 first character of the extra string is used as its exit status.  the first character of the extra string is used as its exit status.
 .Pp  .Pp
 The following input file describes the set of  The following input file describes the set of
 default command keys used by less:  default command keys used by less:
Line 321 
Line 320 
 take precedence over the default commands.  take precedence over the default commands.
 A default command key may be disabled by including it in the  A default command key may be disabled by including it in the
 input file with the action  input file with the action
 .Qq invalid .  .Cm invalid .
 Alternatively, a key may be defined  Alternatively, a key may be defined
 to do nothing by using the action  to do nothing by using the action
 .Qq noaction .  .Cm noaction .
 .Qq noaction  .Cm noaction
 is similar to  is similar to
 .Qq invalid ,  .Cm invalid ,
 but less will give an error beep for an  but less will give an error beep for an
 .Qq invalid  .Cm invalid
 command, but not for a  command, but not for a
 .Qq noaction  .Cm noaction
 command.  command.
 In addition, ALL default commands may be disabled by  In addition, all default commands may be disabled by
 adding this control line to the input file:  adding this control line to the input file:
 .Pp  .Pp
 .Dl #stop  .Dl #stop
 .Pp  .Pp
 This will cause all default commands to be ignored.  This will cause all default commands to be ignored.
 The #stop line should be the last line in that section of the file.  The
   .Cm #stop
   line should be the last line in that section of the file.
 .Pp  .Pp
 Be aware that #stop can be dangerous.  Be aware that
   .Cm #stop
   can be dangerous.
 Since all default commands are disabled, you must provide sufficient  Since all default commands are disabled, you must provide sufficient
 commands before the #stop line to enable all necessary actions.  commands before the
   .Cm #stop
   line to enable all necessary actions.
 For example, failure to provide a  For example, failure to provide a
 .Qq quit  .Cm quit
 command can lead to frustration.  command can lead to frustration.
 .Sh LINE EDITING SECTION  .Sh LINE EDITING SECTION
 The line-editing section begins with the line:  The line-editing section begins with the line:
Line 410 
Line 415 
 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 less configuration information stored in one file.  is simply to have all less configuration information stored in one file.
 .Pp  .Pp
 The following input file sets the -i option whenever less is run,  The following input file sets the
   .Fl i
   option whenever less is run,
 and specifies the character set to be  and specifies the character set to be
 .Qq latin1 :  .Cm latin1 :
 .Bd -literal -offset indent  .Bd -literal -offset indent
 #env  #env
 LESS = -i  LESS = -i
Line 431 
Line 438 
 .El  .El
 .Sh FILES  .Sh FILES
 .Bl -tag -width "$HOME/.lesskey" -compact  .Bl -tag -width "$HOME/.lesskey" -compact
 .It $HOME/.less  .It Pa $HOME/.less
 Default  Default
 .Nm  .Nm
 file.  file.
 .It $HOME/.lesskey  .It Pa $HOME/.lesskey
 Default  Default
 .Nm  .Nm
 input file.  input file.
 .It /etc/sysless  .It Pa /etc/sysless
 Default system-wide  Default system-wide
 .Nm  .Nm
 file.  file.
Line 450 
Line 457 
 .An Mark Nudelman  .An Mark Nudelman
 .Pp  .Pp
 Send bug reports or comments to  Send bug reports or comments to
 .Aq Mt bug\-less@gnu.org .  .Aq Mt bug-less@gnu.org .
 .\" .Sh CAVEATS  .\" .Sh CAVEATS
 .\" On MS-DOS and OS/2 systems, certain keys send a sequence of characters  .\" On MS-DOS and OS/2 systems, certain keys send a sequence of characters
 .\" which start with a NUL character (0).  .\" which start with a NUL character (0).

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12