On 17/03/2010 13:54, Shawn Walker wrote:
> On 03/17/10 11:17 AM, Hillel Lubman wrote:
>> Man for lesskey states, that by default Page Up/Page Down are 
>> supposed to do exactly that when less is used (screen back, screen 
>> forward):
>> ---------------
>> ...
>>    \kU  PAGE UP
>>    \kD  PAGE DOWN
>> ...
>> The following input file describes the set of  default
>> command keys used by less:
>> ...
>>    \kD  forw-screen
>> ...
>>    \kU  back-screen
>> ----------------
>>
>> However they don't work on OpenSolaris (tested on snv_134). There are 
>> some issues with Home/End and Page Up/Page Down with terminals on 
>> OpenSolaris in general, some of which are fixed by enabling 
>> /etc/bash/inputrc (this helps for bash and for vim for example). 
>> However for 'less' this doesn't help (it still doesn't react on Page 
>> Up and Page Down). How can it be configured or something else is 
>> missing here?
>
> http://tech.groups.yahoo.com/group/solarisx86/message/20027
>
> mkdir /tmp/foo
> env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm > 
> /tmp/foo/xterm.ti
> echo ' knp=\E[6~, kpp=\E[5~, ' >> /tmp/foo/xterm.ti
> env TERMINFO=/tmp/foo /bin/tic -v /tmp/foo/xterm.ti
>
> Example:
> env TERMINFO=/tmp/foo less -nf /etc/nsswitch.conf
>
> This makes the previous page, next page keys work as they do in most 
> GNU/Linux and other distributions. Home and End already do as far as I 
> can tell.
>
> If you wanted this to be more permanent, you'd need to setup your own 
> TERMINFO as shown above.
>
> Cheers,
Thanks, I moved results it to /usr/share/lib/terminfo and now it works 
permanently.

Hillel.

Reply via email to