From: splee@pd.org (Seng-Poh Lee, Speedy) Subject: Re: A modified LESS to accept arrow keys Date: 14 Apr 1993 18:08:32 GMT
root-bound (aehall@calvin.seattleu.edu) wrote:
> I've modified the source of LESS to accept up/down arrows, pgup/pgdn,
> and home/end from the PC keyboard.
>
less already supports programmable keys. Why would you hard code the
keys in? Just create a file ~/.lessin such as the one below (for a VT100)
and run lesskey on it.
^[[A back-line
^[[B forw-line
^[[C next-file
^[[D prev-file
^[[6~ forw-screen
^[[5~ back-screen
^[[1~ forw-search
^[[4~ set-mark
^[[2~ goto-mark
^[[28~ help
^[[29~ status
^[OR repeat-search
^[OP4 goto-end
^[OP5 goto-line
e visual