Re: Spawn_Console

aeb@cwi.nl
Mon, 12 Feb 1996 17:44:05 +0100


: On Mon, 12 Feb 1996 Andries.Brouwer@cwi.nl wrote:

[No text written by me was included - please watch your quoting]

: Just a hint about printing a screen from the console. The /dev/vcs
: devices can be used to dump the contens of a virtual console to stdout.

: Try cat /dev/vcs0 | lpr

/dev/vcs* is a device that contains the bytes found in console screen
memory. However, there are no newline characters there.

[Maybe that was a design mistake, I hesitated while writing this code,
but the present version is cleaner - after all, one can also write to
this device, and it is not clear what should happen if one overwrites
a newline character with something else.]

So, a simple cat will only do what you want if you cat to a device with
the same width as the screen represented by this /dev/vcs*.
In the general case one needs a tiny screendump utility.
For example, "setterm -dump N".
[Maybe that is what I said in the text you deleted.]

Andries