home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / LES177AX.ZIP / LESSKEY.MAN < prev    next >
Encoding:
Text File  |  1991-09-11  |  5.7 KB  |  201 lines

  1.  
  2.  
  3. LESSKEY(1)          Unix Programmer's Manual           LESSKEY(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      lesskey - specify key bindings for less
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      llleeesssssskkkeeeyyy [[[-ooo ooouuutttpppuuuttt]]] [[[iiinnnpppuuuttt]]]
  11.  
  12. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  13.      _L_e_s_s_k_e_y is used to specify a set of key bindings to be  used
  14.      by  _l_e_s_s.  The input file is a text file which describes the
  15.      key bindings, and the output file is a binary file which  is
  16.      used  by _l_e_s_s. If no input file is specified, standard input
  17.      is used.  If no output file  is  specified,  $HOME/_less  is
  18.      used.
  19.  
  20.      The input file consists of lines of the form:
  21.  
  22.           string <whitespace> action [extra-string] <newline>
  23.  
  24.      Whitespace is any sequence of  one  or  more  spaces  and/or
  25.      tabs.   The  "string" is the command key(s) which invoke the
  26.      action.  The string may  be  a  single  command  key,  or  a
  27.      sequence  of up to 15 keys.  The "action" is the name of the
  28.      less action, from the list below.   The  characters  in  the
  29.      "string"  may appear literally, or be prefixed by a carat to
  30.      indicate a control key.  A backslash may be  used  to  cause
  31.      the  following  character to be taken literally.  Characters
  32.      which must be preceded by backslash  include  carat,  space,
  33.      tab  and  the backslash itself.  A backslash followed by one
  34.      to three octal digits may be used to specify a character  by
  35.      its  octal  value.  Blank lines and lines which start with a
  36.      pound sign (#) are ignored.
  37.  
  38.      An action may be followed by an extra string.   This  string
  39.      is  parsed  after the command is entered, just as if it were
  40.      entered on the command line.  This feature can  be  used  in
  41.      certain cases to extend the functionality of a command.  For
  42.      example, these entries would create a pair  of  commands  to
  43.      turn on/off line numbers using _v_i syntax:
  44.  
  45.           :set\ nu  toggle-option -N
  46.           :set\ nonu toggle-option +N
  47.  
  48.      See also the ":ta" command in the example below.
  49.  
  50.  
  51. EEEXXXAAAMMMPPPLLLEEE
  52.      The following  input  file  describes  the  set  of  default
  53.      command keys used by less:
  54.  
  55.           r         forw-line
  56.           n         forw-line
  57.           e         forw-line
  58.           j         forw-line
  59.           ^E        forw-line
  60.           ^N        forw-line
  61.           k         back-line
  62.  
  63.  
  64.                                                                 1
  65.  
  66.  
  67.  
  68.  
  69. LESSKEY(1)          Unix Programmer's Manual           LESSKEY(1)
  70.  
  71.  
  72.           y         back-line
  73.           ^Y        back-line
  74.           ^K        back-line
  75.           ^P        back-line
  76.           J         forw-line-force
  77.           K         back-line-force
  78.           Y         back-line-force
  79.           d         forw-scroll
  80.           ^D        forw-scroll
  81.           u         back-scroll
  82.           ^U        back-scroll
  83.           '         back-scroll
  84.           \40       forw-screen
  85.           f         forw-screen
  86.           ^F        forw-screen
  87.           ^V        forw-screen
  88.           b         back-screen
  89.           ^B        back-screen
  90.           \33v      back-screen
  91.           z         forw-window
  92.           w         back-window
  93.           F         forw-forever
  94.           R         repaint-flush
  95.           r         repaint
  96.           ^R        repaint
  97.           ^L        repaint
  98.           g         goto-line
  99.           <         goto-line
  100.           \33<      goto-line
  101.           p         percent
  102.           %         percent
  103.           {         forw-bracket {}
  104.           }         back-bracket {}
  105.           (         forw-bracket ()
  106.           )         back-bracket ()
  107.           [         forw-bracket []
  108.           ]         back-bracket []
  109.           \33^F forw-bracket
  110.           \33^B back-bracket
  111.           G         goto-end
  112.           \33>      goto-end
  113.           >         goto-end
  114.           P         goto-end
  115.           =         status
  116.           ^G        status
  117.           :f        status
  118.           /         forw-search
  119.           ?         back-search
  120.           \33/      forw-search *
  121.           \33?      back-search *
  122.           n         repeat-search
  123.           \33n      repeat-search-all
  124.           N         reverse-search
  125.           \33N      reverse-search-all
  126.           m         set-mark
  127.           '         goto-mark
  128.  
  129.  
  130.                                                                 2
  131.  
  132.  
  133.  
  134.  
  135. LESSKEY(1)          Unix Programmer's Manual           LESSKEY(1)
  136.  
  137.  
  138.           ^X^X      goto-mark
  139.           E         examine
  140.           :e        examine
  141.           ^X^V      examine
  142.           :n        next-file
  143.           :p        prev-file
  144.           :x        index-file
  145.           -         toggle-option
  146.           :t        toggle-option t
  147.           s         toggle-option o
  148.           _         display-option
  149.           |         pipe
  150.           v         visual
  151.           !         shell
  152.           +         firstcmd
  153.           H         help
  154.           h         help
  155.           V         version
  156.           q         quit
  157.           :q        quit
  158.           :Q        quit
  159.           ZZ        quit
  160.           \33\33 quit
  161.  
  162.      Commands specified  by  _l_e_s_s_k_e_y  take  precedence  over  the
  163.      default  commands.  A default command key may be disabled by
  164.      including it in the key file with the action "invalid".
  165.  
  166.      "Extended" keycodes on PCs are entered with a leading \80 instead of \00
  167.  
  168.  
  169. SSSEEEEEE AAALLLSSSOOO
  170.      less(1)
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.                                                                 3
  199.  
  200.  
  201.