home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / UTILS / H-O / LESS177 / LESSKEY.MAN < prev    next >
Text File  |  1991-03-06  |  7KB  |  199 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 [extra-string] <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 preceded 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.           An action may be followed by an extra string.  This string
  41.           is parsed after the command is entered, just as if it were
  42.           entered on the command line.  This feature can be used in
  43.           certain cases to extend the functionality of a command.  For
  44.           example, these entries would create a pair of commands to
  45.           turn on/off line numbers using _v_i syntax:
  46.  
  47.                :set\ nu       toggle-option -N
  48.                :set\ nonu     toggle-option +N
  49.  
  50.           See also the ":ta" command in the example below.
  51.  
  52.  
  53.      EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  54.           The following input file describes the set of default
  55.           command keys used by less:
  56.  
  57.                r         forw-line
  58.                n         forw-line
  59.                e         forw-line
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/2/91)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))                  UUUUNNNNIIIIXXXX 5555....0000                   LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))
  71.  
  72.  
  73.  
  74.                j         forw-line
  75.                ^E        forw-line
  76.                ^N        forw-line
  77.                k         back-line
  78.                y         back-line
  79.                ^Y        back-line
  80.                ^K        back-line
  81.                ^P        back-line
  82.                J         forw-line-force
  83.                K         back-line-force
  84.                Y         back-line-force
  85.                d         forw-scroll
  86.                ^D        forw-scroll
  87.                u         back-scroll
  88.                ^U        back-scroll
  89.                '         back-scroll
  90.                \40       forw-screen
  91.                f         forw-screen
  92.                ^F        forw-screen
  93.                ^V        forw-screen
  94.                b         back-screen
  95.                ^B        back-screen
  96.                \33v      back-screen
  97.                z         forw-window
  98.                w         back-window
  99.                F         forw-forever
  100.                R         repaint-flush
  101.                r         repaint
  102.                ^R        repaint
  103.                ^L        repaint
  104.                g         goto-line
  105.                <         goto-line
  106.                \33<      goto-line
  107.                p         percent
  108.                %         percent
  109.                {         forw-bracket {}
  110.                }         back-bracket {}
  111.                (         forw-bracket ()
  112.                )         back-bracket ()
  113.                [         forw-bracket []
  114.                ]         back-bracket []
  115.                \33^F     forw-bracket
  116.                \33^B     back-bracket
  117.                G         goto-end
  118.                \33>      goto-end
  119.                >         goto-end
  120.                P         goto-end
  121.                =         status
  122.                ^G        status
  123.                :f        status
  124.                /         forw-search
  125.                ?         back-search
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 3/2/91)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))                  UUUUNNNNIIIIXXXX 5555....0000                   LLLLEEEESSSSSSSSKKKKEEEEYYYY((((1111))))
  137.  
  138.  
  139.  
  140.                \33/      forw-search *
  141.                \33?      back-search *
  142.                n         repeat-search
  143.                \33n      repeat-search-all
  144.                N         reverse-search
  145.                \33N      reverse-search-all
  146.                m         set-mark
  147.                '         goto-mark
  148.                ^X^X      goto-mark
  149.                E         examine
  150.                :e        examine
  151.                ^X^V      examine
  152.                :n        next-file
  153.                :p        prev-file
  154.                :x        index-file
  155.                -         toggle-option
  156.                :t        toggle-option t
  157.                s         toggle-option o
  158.                _         display-option
  159.                |         pipe
  160.                v         visual
  161.                !         shell
  162.                +         firstcmd
  163.                H         help
  164.                h         help
  165.                V         version
  166.                q         quit
  167.                :q        quit
  168.                :Q        quit
  169.                ZZ        quit
  170.                \33\33    quit
  171.  
  172.           Commands specified by _l_e_s_s_k_e_y take precedence over the
  173.           default commands.  A default command key may be disabled by
  174.           including it in the key file with the action "invalid".
  175.  
  176.  
  177.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  178.           less(1)
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                           (printed 3/2/91)
  196.  
  197.  
  198.  
  199.