LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-01-2010, 08:58 AM   #1
skola
Member
 
Registered: Nov 2009
Posts: 66

Rep: Reputation: 19
Terminals, pageup/down of less,man


Only getting half pageup/down of text display in terminals.

Using a command-line terminal in 2 ways:

not running "startx" -screen is fullsize
GUI terminal window -screen is default or maximised

In either case if I run "ps aux" and then use shift-up/down to see the output, I only get a half-screen (or half page) change. That is, if the list in the screen has lines 1-50, on doing a shift-down the top line is 25 and not 51.

Similarly with "less" and "man". This is annoying with "ps aux" as there are so many similar processes and with the others it means checking the last line for sentence flow.

I want a definite full page up/down if I use shift-up/down or the keyboard pgup/dn keys.

Now, "man man" talks about the output being related to "less" and "man less" about using a ".lesskey" file and having options "-z, d" which change that paging behaviour. I can invoke the less options whilst it's running to give me fullpages but not trying a ".lesskey" options file in my directory.

I can't see any other ways of changing the "man" or straight terminal behaviour so any hints appreciated.
 
Old 04-01-2010, 12:06 PM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
man uses less, and less uses vi key bindings. You can get a full page up or page down with f for forward and b for backward.
 
Old 04-01-2010, 01:55 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I've also had the same problem for the longest time with the display history scrolling (shift+pageup/down only moves half of a screen), but I've never found a clear answer for it. It's quite annoying. It may have something to do with the readline key bindings or something.

I've never had a problem with less or other pagers though. However, check the man page for lesskey. Apparently it can be called as a separate command. It looks like you just have to create the .lesskey file in your home directory, or set the LESSKEY environmental variable in your shell startup scripts, to change the bindings.
 
Old 04-02-2010, 07:53 AM   #4
skola
Member
 
Registered: Nov 2009
Posts: 66

Original Poster
Rep: Reputation: 19
ok, thanks penguinator and David.

David, my original post line was perhaps unclear. "...but not trying a ".lesskey" options file in my directory."

that meant the "lesskey" file I did set up according to the "mans" didn't seem to work though I may have misunderstood the pages.
and anyway,using spacebar was ok for forward only-

However, bit of an "aaarrrgghh" moment

On rebooting I've found that using the 'f,b' keys now gives a page certainly with "man" and "less" which believe me didn't happen before, which leaves the shift-up/down.

regards both
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB problem on linux terminals vie NComputing X300 terminals Aleks` Linux - General 1 12-04-2008 05:39 PM
scrolling / pageup in terminal briemac Linux - General 4 01-17-2007 04:26 PM
Terminals - spying on local terminals with ssh BeatRyder Linux - Software 5 10-21-2004 01:47 AM
Console shift-pageup Speek Slackware 2 09-28-2004 09:48 AM
man pages and pageup-down wrongman Linux - Software 1 07-29-2004 01:53 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration