<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>The Linux keyboard and console HOWTO: Screen dumps</TITLE> <LINK HREF="kbd.FAQ-21.html" REL=next> <LINK HREF="kbd.FAQ-19.html" REL=previous> <LINK HREF="kbd.FAQ.html#toc20" REL=contents> </HEAD> <BODY> <A HREF="kbd.FAQ-21.html">Next</A> <A HREF="kbd.FAQ-19.html">Previous</A> <A HREF="kbd.FAQ.html#toc20">Contents</A> <HR> <H2><A NAME="s20">20. Screen dumps</A></H2> <P> <!-- console!screenshots, obtaining --> <!-- screenshots!obtaining from console --> <P><CODE>setterm -dump</CODE> <I>N</I> will dump the contents of the screen of <CODE>/dev/tty</CODE><I>N</I> to a file <CODE>screen.dump</CODE> in the current directory. See setterm(1). <P>The current contents of the screen of <CODE>/dev/tty</CODE><I>N</I> can be accessed using the device <CODE>/dev/vcs</CODE><I>N</I> (where `vcs' stands for `virtual console screen'). For example, you could have a clock program that displays the current time in the upper right hand corner of the console screen (see the program <CODE>vcstime</CODE> in <CODE>kbd-1.04.tar.gz</CODE>). Just dumping the contents goes with <CODE>cat /dev/vcs</CODE><I>N</I>. These device files <CODE>/dev/vcs</CODE><I>N</I> do not contain newlines, and do not contain attributes, like colors. From a program it is usually better to use <CODE>/dev/vcsa</CODE><I>N</I> (`virtual console screen with attributes') instead - it starts with a header giving the number of rows and columns and the location of the cursor. See vcs(4). <P> <HR> <A HREF="kbd.FAQ-21.html">Next</A> <A HREF="kbd.FAQ-19.html">Previous</A> <A HREF="kbd.FAQ.html#toc20">Contents</A> </BODY> </HTML>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ANSI-dvorak.gif | File | 3.72 KB | 0644 |
|
AUTHORS | File | 741 B | 0644 |
|
COPYING | File | 1.95 KB | 0644 |
|
ChangeLog | File | 15.69 KB | 0644 |
|
README | File | 637 B | 0644 |
|
dvorak-l.xmodmap | File | 2.28 KB | 0644 |
|
dvorak-r.xmodmap | File | 2.28 KB | 0644 |
|
dvorak.diffs | File | 1.37 KB | 0644 |
|
dvorak.txt | File | 1.14 KB | 0644 |
|
dvorak.xmodmap | File | 2.11 KB | 0644 |
|
font-formats-1.html | File | 5.35 KB | 0644 |
|
font-formats-2.html | File | 1.44 KB | 0644 |
|
font-formats-3.html | File | 6.84 KB | 0644 |
|
font-formats-4.html | File | 2.15 KB | 0644 |
|
font-formats-5.html | File | 517 B | 0644 |
|
font-formats.html | File | 1.29 KB | 0644 |
|
kbd.FAQ-1.html | File | 4.09 KB | 0644 |
|
kbd.FAQ-10.html | File | 2.58 KB | 0644 |
|
kbd.FAQ-11.html | File | 2.2 KB | 0644 |
|
kbd.FAQ-12.html | File | 8.02 KB | 0644 |
|
kbd.FAQ-13.html | File | 4.39 KB | 0644 |
|
kbd.FAQ-14.html | File | 3.39 KB | 0644 |
|
kbd.FAQ-15.html | File | 6.76 KB | 0644 |
|
kbd.FAQ-16.html | File | 2.95 KB | 0644 |
|
kbd.FAQ-17.html | File | 1.67 KB | 0644 |
|
kbd.FAQ-18.html | File | 2.46 KB | 0644 |
|
kbd.FAQ-19.html | File | 1.32 KB | 0644 |
|
kbd.FAQ-2.html | File | 2.92 KB | 0644 |
|
kbd.FAQ-20.html | File | 1.68 KB | 0644 |
|
kbd.FAQ-21.html | File | 1.67 KB | 0644 |
|
kbd.FAQ-22.html | File | 2.38 KB | 0644 |
|
kbd.FAQ-23.html | File | 965 B | 0644 |
|
kbd.FAQ-3.html | File | 2.06 KB | 0644 |
|
kbd.FAQ-4.html | File | 7.68 KB | 0644 |
|
kbd.FAQ-5.html | File | 16.87 KB | 0644 |
|
kbd.FAQ-6.html | File | 2.68 KB | 0644 |
|
kbd.FAQ-7.html | File | 5.58 KB | 0644 |
|
kbd.FAQ-8.html | File | 9.19 KB | 0644 |
|
kbd.FAQ-9.html | File | 2.54 KB | 0644 |
|
kbd.FAQ.html | File | 5.11 KB | 0644 |
|
utfdemo | File | 4.15 KB | 0644 |
|
utflist | File | 25.1 KB | 0644 |
|