The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Scroll the screen
Author: John Doe 
Date:   26-02-02 22:01

a tip for beginners (like me), I was looking for that feature since a long time, spending my time with " |more " option to see outputs, an long lists...

to see what's up your screen PRESS Pause KEY, then PgUp/Pgdn will display your "upper screen" (previous)

that technique seems "buffered",
don't know how to set that buffer size,
what makes "|more" args still usefull...
for very very long output...

"Happy BSDing"



Reply To This Message
 Re: Scroll the screen
Author: donald fast 
Date:   27-02-02 06:07

A minor correction:
the key to press is actually the 'Scroll Lock' key (which may be the pause key on some keyboards).

cursor up and down will also work to scroll by lines.

It seems to be about 2 or 3 screenfuls. It would be nice to increase this limit (especially when making a port, so that i can quickly see what changed).

hope this helps,


Reply To This Message
 Re: Scroll the screen
Author: Rob 
Date:   27-02-02 20:08


With an xterm you can change the scroll buffer with this option:

-sl 2000

As far as the console I am not sure, but it would be nice to change it to a higher value.



Reply To This Message
 Re: Scroll the screen
Author: Rob 
Date:   27-02-02 20:11

Actually, upon further examination, it looks like you can change it in the kernel. I did "man syscons" and the option looks like it is SC_HISTORY_SIZE is where you can set it.


Reply To This Message
 Re: Scroll the screen
Author: el_kab0ng 
Date:   01-03-02 00:35

Let's not forget the virtual windows at the console... "print screen" will scroll between the 7. =]

Reply To This Message
 Re: Scroll the screen
Author: cam 
Date:   04-03-02 02:46

Why not just use the 'script' command?

Works beautifully.


Reply To This Message
 Re: Scroll the screen
Author: .daniel.schrock 
Date:   04-03-02 23:18

'script' is relatively inefficient if you don't need to look very far back...

its great for recording compiles, but you just need to see a couple lines above the limit of your terminal borders, it just adds hassle

Reply To This Message
 Re: Scroll the screen 4 linux wanaswitch2...
Author: bob 
Date:   01-08-03 20:20


under linux (but also by default when ssh/telneting my DSB box)
it is always SHIFT+PGUP / SHIFT+PGDW...

wich drive me crazy when I have to plug a keyboard into a FBSD..


Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum