Solved

Virtual terminal screen scroll back

Posted on 1997-11-24
5
791 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to split and output to csv in bash 2 60
nagios monitor 3 41
linux installs 6 47
mcrypt_create_iv() is deprecated 4 67
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

932 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

9 Experts available now in Live!

Get 1:1 Help Now