Blame docs/doc/kbd.FAQ-20.html
|
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: Screen dumps</TITLE>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ-21.html" REL=next>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ-19.html" REL=previous>
|
|
Packit Service |
50ad14 |
<LINK HREF="kbd.FAQ.html#toc20" 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!screenshots, obtaining
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
screenshots!obtaining from console
|
|
Packit Service |
50ad14 |
-->
|
|
Packit Service |
50ad14 |
setterm -dump N will dump the contents of the
|
|
Packit Service |
50ad14 |
screen of /dev/tty N to a file screen.dump
|
|
Packit Service |
50ad14 |
in the current directory. See setterm(1).
|
|
Packit Service |
50ad14 |
The current contents of the screen of /dev/tty N
|
|
Packit Service |
50ad14 |
can be accessed using the device /dev/vcs N
|
|
Packit Service |
50ad14 |
(where `vcs' stands for `virtual console screen').
|
|
Packit Service |
50ad14 |
For example, you could have a clock program that displays the
|
|
Packit Service |
50ad14 |
current time in the upper right hand corner of the console screen
|
|
Packit Service |
50ad14 |
(see the program vcstime in kbd-1.04.tar.gz ).
|
|
Packit Service |
50ad14 |
Just dumping the contents goes with cat /dev/vcs N.
|
|
Packit Service |
50ad14 |
These device files /dev/vcs N do not contain
|
|
Packit Service |
50ad14 |
newlines, and do not contain attributes, like colors. From a program
|
|
Packit Service |
50ad14 |
it is usually better to use /dev/vcsa N
|
|
Packit Service |
50ad14 |
(`virtual console screen with attributes') instead - it starts with
|
|
Packit Service |
50ad14 |
a header giving the number of rows and columns and the location
|
|
Packit Service |
50ad14 |
of the cursor.
|
|
Packit Service |
50ad14 |
See vcs(4).
|
|
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>
|