Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Virtual terminal screen scroll back

Posted on 1997-11-24
5
Medium Priority
?
813 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 210 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

879 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