Solved

Virtual terminal screen scroll back

Posted on 1997-11-24
5
790 Views
Last Modified: 2012-06-27
When I scroll back using Shift+Page-Up, I scroll back half a screen. Does anyone know how to change this to a full screen scroll? Thanks.
0
Comment
Question by:t2pp
5 Comments
 
LVL 19

Expert Comment

by:xterm
ID: 1634265
hmm, that is the default behaviour - 1/2 a screen.  I'll
jack around and see if theres a way to change that.
0
 
LVL 4

Expert Comment

by:unicorntech
ID: 1634266
There is no simple way of doing this - what you would need to do if you wished to change this is to rewrite the code so that it loops once when you press the scrollback keys and exwecutes two scrollbacks - this is the easiest way.

Regards,

jason
0
 
LVL 1

Author Comment

by:t2pp
ID: 1634267
Thanks uni, but I don't see an answer here :) Will wait to see what xterm comes up with. Thanks anyway.
0
 
LVL 1

Accepted Solution

by:
hno earned 70 total points
ID: 1634268
The source is hardcoded to 1/2 screen. No way to change outside the kernel source.

You can change this at two places in the kernel source: either scroll_back in drivers/char/keyboard.c (if you want a fixed number of lines), or drivers/char/console.c (if you want a precentage of the screen).

The easiest way to do full screen scrolls is to change
drivers/char/console.c:scrollback
  from
      lines = video_num_lines/2;
  to
      lines = video_num_lines;

and the same change to scrollfront to make page down behave in the same way...

0
 
LVL 1

Author Comment

by:t2pp
ID: 1634269
Thanks hno. I think that's about the best answer I'll get.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now