libkeymap: Do not dump diacr values if lk_dump_keymap called
[platform/upstream/kbd.git] / doc / kbd.FAQ-18.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
5  <TITLE>The Linux keyboard and console HOWTO: Scrolling</TITLE>
6  <LINK HREF="kbd.FAQ-19.html" REL=next>
7  <LINK HREF="kbd.FAQ-17.html" REL=previous>
8  <LINK HREF="kbd.FAQ.html#toc18" REL=contents>
9 </HEAD>
10 <BODY>
11 <A HREF="kbd.FAQ-19.html">Next</A>
12 <A HREF="kbd.FAQ-17.html">Previous</A>
13 <A HREF="kbd.FAQ.html#toc18">Contents</A>
14 <HR>
15 <H2><A NAME="s18">18. Scrolling</A></H2>
16
17 <P>
18 <!--
19 console!scrolling
20 -->
21
22 <!--
23 scrolling, console
24 -->
25 <P>There are two ways to get a screen to scroll.
26 The first, called `hard scrolling', is to leave the text in
27 video memory as it is, but change the viewing origin. This is
28 very fast.
29 The second, called `soft scrolling', involves moving all screen text
30 up or down. This is much slower.
31 The kernel console driver will write text starting at the top of
32 the video memory, continuing to the bottom, then copy the bottom
33 part to the top again, and continue, all the time using hard scrolling
34 to show the right part on the screen.
35 You can scroll back until the top op the video memory by using
36 Shift-PageUp (the grey PageUp) and scroll down again using
37 Shift-PageDown (the grey PageDown), assuming a default keymap.
38 The amount of scrollback is thus limited to the amount of video memory
39 you happen to have and you cannot increase this amount.
40 If you need more scrollback, use some program that
41 buffers the text, like <CODE>less</CODE> or <CODE>screen</CODE> - by using
42 a buffer on disk you can go back to what you did last week.
43 (One can set the amount of scrollback for <CODE>xterm</CODE> by
44 adding a line like <CODE>XTerm*saveLines: 2500</CODE> in <CODE>.Xresources</CODE>.)
45 <P>Upon changing virtual consoles, the screen content of the old VT
46 is copied to kernel memory, and the screen content of the new VT
47 is copied from kernel memory to video memory. Only the visible screen
48 is copied, not all of video memory, so switching consoles means
49 losing the scrollback information.
50 <P>Sometimes, hard scrolling is undesirable, for example when the hardware
51 does not have the possibility to change viewing origin. The first
52 example was a Braille machine that would render the top of video
53 memory in Braille. There is a kernel boot-time option <CODE>no-scroll</CODE>
54 to tell the console driver not to use hard scrolling.
55 See bootparam(7).
56 <P>
57 <HR>
58 <A HREF="kbd.FAQ-19.html">Next</A>
59 <A HREF="kbd.FAQ-17.html">Previous</A>
60 <A HREF="kbd.FAQ.html#toc18">Contents</A>
61 </BODY>
62 </HTML>