Server IP : 192.168.23.10  /  Your IP : 18.188.233.69
Web Server : Apache
System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64
User : rrrallyteam ( 1049)
PHP Version : 8.1.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /home/../../usr/share/doc/ethtool/../kbd/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/../../usr/share/doc/ethtool/../kbd/kbd.FAQ-20.html
<!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>