Less – Use PageUp/PageDown keys in Solaris

lesssolaris

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

Best Answer

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.

Related Topic