"=?iso-8859-1?Q?Ra=FAl_Guti=E9rrez_Segal=E9s?=" <oxford@campoalto.edu.py> writes:
How can I take a screenshot of a console (tty1-6)?
The following is from "The Linux keyboard and console HOWTO", which can bee accessed e.g. from the SuSE Help Center: 20. Screen dumps setterm -dump N will dump the contents of the screen of /dev/ttyN to a file screen.dump in the current directory. See setterm(1). The current contents of the screen of /dev/ttyN can be accessed using the device /dev/vcsN (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 vcstime in kbd-0.95.tar.gz). Just dumping the contents goes with cat /dev/vcsN. These device files /dev/vcsN do not contain newlines, and do not contain attributes, like colors. From a program it is usually better to use /dev/vcsaN (`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).
how do I know if an app working on a text console had hanged up??
How can we know how you do know? You may, for instance, attach gdb to it, watch it with strace, ... -- Alexandr.Malusek@imv.liu.se