Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have been away from Solaris for the last 5 years. I am use to use pageup and pagedown rather than b and f.

Anyone know a simple way to make this work? My shell is /bin/tcsh ( Im QA so I cannot change this. ) if it matters

share|improve this question

1 Answer 1

You can do it using the lesskey feature:

$ cat >/tmp/lk <<%
\e[6~ forw-screen
\e[5~ back-screen
%

$ lesskey /tmp/lk

and you are set.

share|improve this answer
    
But still, isn't it a bug in less that PgUp is treated as PgDn? This phenomenon also happens in xterm with the sunKeyboard resource true (or "Main Option" -> "Sun Function-Keys" enabled). –  Jens Apr 28 '11 at 15:19
    
I wouldn't call it a bug because as far as I know, the page up and down keys aren't documented to do anything specific in the less documentation. It is then an undefined behavior and a coincidence if PgUp and PgDn are doing the same thing. –  jlliagre Apr 29 '11 at 14:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.