home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume16 / less5 / part04 / lesskey.man < prev    next >
Text File  |  1988-09-22  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4.      LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))                  UUUUNNNNIIIIXXXX 5555....0000                   LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           lesskey - specify key bindings for less
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           lllleeeesssssssskkkkeeeeyyyy [[[[----oooo oooouuuuttttppppuuuutttt]]]] [[[[iiiinnnnppppuuuutttt]]]]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           _L_e_s_s_k_e_y is used to specify a set of key bindings to be used
  16.           by _l_e_s_s. The input file is a text file which describes the
  17.           key bindings, and the output file is a binary file which is
  18.           used by _l_e_s_s. If no input file is specified, standard input
  19.           is used.  If no output file is specified, $HOME/.less is
  20.           used.
  21.  
  22.           The input file consists of lines of the form:
  23.  
  24.                string <whitespace> action <newline>
  25.  
  26.           Whitespace is any sequence of one or more spaces and/or
  27.           tabs.  The "string" is the command key(s) which invoke the
  28.           action.  The string may be a single command key, or a
  29.           sequence of up to 15 keys.  The "action" is the name of the
  30.           less action, from the list below.  The characters in the
  31.           "string" may appear literally, or be prefixed by a carat to
  32.           indicate a control key.  A backslash may be used to cause
  33.           the following character to be taken literally.  Characters
  34.           which must be preceeded by backslash include carat, space,
  35.           tab and the backslash itself.  A backslash followed by one
  36.           to three octal digits may be used to specify a character by
  37.           its octal value.  Blank lines and lines which start with a
  38.           pound sign (#) are ignored.
  39.  
  40.           As an example, the following input file describes the set of
  41.           default command keys used by less:
  42.  
  43.                k              back-line
  44.                y              back-line
  45.                ^K             back-line
  46.                ^Y             back-line
  47.                ^P             back-line
  48.                b              back-screen
  49.                ^B             back-screen
  50.                \33v           back-screen
  51.                u              back-scroll
  52.                ^U             back-scroll
  53.                ?              back-search
  54.                E              examine
  55.                ^X^V           examine
  56.                +              first-cmd
  57.                e              forw-line
  58.                j              forw-line
  59.                ^E             forw-line
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/19/88)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))                  UUUUNNNNIIIIXXXX 5555....0000                   LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))
  71.  
  72.  
  73.  
  74.                ^J             forw-line
  75.                ^M             forw-line
  76.                ^N             forw-line
  77.                f              forw-screen
  78.                ^F             forw-screen
  79.                \40            forw-screen
  80.                ^V             forw-screen
  81.                d              forw-scroll
  82.                ^D             forw-scroll
  83.                /              forw-search
  84.                G              goto-end
  85.                >              goto-end
  86.                \33>           goto-end
  87.                g              goto-line
  88.                <              goto-line
  89.                \33<           goto-line
  90.                '              goto-mark
  91.                ^X^X           goto-mark
  92.                H              help
  93.                N              next-file
  94.                %              percent
  95.                p              percent
  96.                P              prev-file
  97.                q              quit
  98.                ZZ             quit
  99.                ^L             repaint
  100.                ^R             repaint
  101.                r              repaint
  102.                R              flush-repaint
  103.                n              repeat-search
  104.                m              set-mark
  105.                !              shell
  106.                =              status
  107.                ^G             status
  108.                -              toggle-option
  109.                _              display-option
  110.                V              version
  111.                v              visual
  112.  
  113.           Commands specified by _l_e_s_s_k_e_y take precedence over the
  114.           default commands.  A default command key may be disabled by
  115.           including it in the key file with the action "invalid".
  116.  
  117.  
  118.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  119.           less(1)
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 7/19/88)
  130.  
  131.  
  132.  
  133.