|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
<HTML>
|
|
Packit Service |
50ad14 |
<HEAD>
|
|
Packit Service |
50ad14 |
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
Packit Service |
50ad14 |
<TITLE>The Linux keyboard and console HOWTO: Scrolling</TITLE>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ-19.html" REL=next>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ-17.html" REL=previous>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ.html#toc18" REL=contents>
|
|
Packit Service |
50ad14 |
</HEAD>
|
|
Packit Service |
50ad14 |
<BODY>
|
|
Packit Service |
50ad14 |
Next
|
|
Packit Service |
50ad14 |
Previous
|
|
Packit Service |
50ad14 |
Contents
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
console!scrolling
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
scrolling, console
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
There are two ways to get a screen to scroll.
|
|
Packit Service |
50ad14 |
The first, called `hard scrolling', is to leave the text in
|
|
Packit Service |
50ad14 |
video memory as it is, but change the viewing origin. This is
|
|
Packit Service |
50ad14 |
very fast.
|
|
Packit Service |
50ad14 |
The second, called `soft scrolling', involves moving all screen text
|
|
Packit Service |
50ad14 |
up or down. This is much slower.
|
|
Packit Service |
50ad14 |
The kernel console driver will write text starting at the top of
|
|
Packit Service |
50ad14 |
the video memory, continuing to the bottom, then copy the bottom
|
|
Packit Service |
50ad14 |
part to the top again, and continue, all the time using hard scrolling
|
|
Packit Service |
50ad14 |
to show the right part on the screen.
|
|
Packit Service |
50ad14 |
You can scroll back until the top op the video memory by using
|
|
Packit Service |
50ad14 |
Shift-PageUp (the grey PageUp) and scroll down again using
|
|
Packit Service |
50ad14 |
Shift-PageDown (the grey PageDown), assuming a default keymap.
|
|
Packit Service |
50ad14 |
The amount of scrollback is thus limited to the amount of video memory
|
|
Packit Service |
50ad14 |
you happen to have and you cannot increase this amount.
|
|
Packit Service |
50ad14 |
If you need more scrollback, use some program that
|
|
Packit Service |
50ad14 |
buffers the text, like less or screen - by using
|
|
Packit Service |
50ad14 |
a buffer on disk you can go back to what you did last week.
|
|
Packit Service |
50ad14 |
(One can set the amount of scrollback for xterm by
|
|
Packit Service |
50ad14 |
adding a line like XTerm*saveLines: 2500 in .Xresources .)
|
|
Packit Service |
50ad14 |
Upon changing virtual consoles, the screen content of the old VT
|
|
Packit Service |
50ad14 |
is copied to kernel memory, and the screen content of the new VT
|
|
Packit Service |
50ad14 |
is copied from kernel memory to video memory. Only the visible screen
|
|
Packit Service |
50ad14 |
is copied, not all of video memory, so switching consoles means
|
|
Packit Service |
50ad14 |
losing the scrollback information.
|
|
Packit Service |
50ad14 |
Sometimes, hard scrolling is undesirable, for example when the hardware
|
|
Packit Service |
50ad14 |
does not have the possibility to change viewing origin. The first
|
|
Packit Service |
50ad14 |
example was a Braille machine that would render the top of video
|
|
Packit Service |
50ad14 |
memory in Braille. There is a kernel boot-time option no-scroll
|
|
Packit Service |
50ad14 |
to tell the console driver not to use hard scrolling.
|
|
Packit Service |
50ad14 |
See bootparam(7).
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
Next
|
|
Packit Service |
50ad14 |
Previous
|
|
Packit Service |
50ad14 |
Contents
|
|
Packit Service |
50ad14 |
</BODY>
|
|
Packit Service |
50ad14 |
</HTML>
|