aboutsummaryrefslogtreecommitdiffstats
path: root/man4/vcs.4
diff options
context:
space:
mode:
Diffstat (limited to 'man4/vcs.4')
-rw-r--r--man4/vcs.422
1 files changed, 11 insertions, 11 deletions
diff --git a/man4/vcs.4 b/man4/vcs.4
index 0bd5f4017f..49d58f06f5 100644
--- a/man4/vcs.4
+++ b/man4/vcs.4
@@ -55,7 +55,7 @@ dimensions and cursor position:
=
.I y
= 0 at the top left corner of the screen.)
-
+.PP
When a 512-character font is loaded,
the 9th bit position can be fetched by applying the
.BR ioctl (2)
@@ -78,7 +78,7 @@ so the system
administrator can control access using filesystem permissions.
.PP
The devices for the first eight virtual consoles may be created by:
-
+.PP
.nf
for x in 0 1 2 3 4 5 6 7 8; do
mknod \-m 644 /dev/vcs$x c 7 $x;
@@ -86,7 +86,7 @@ The devices for the first eight virtual consoles may be created by:
done
chown root:tty /dev/vcs*
.fi
-
+.PP
No
.BR ioctl (2)
requests are supported.
@@ -100,27 +100,27 @@ requests are supported.
Introduced with version 1.1.92 of the Linux kernel.
.SH EXAMPLE
You may do a screendump on vt3 by switching to vt1 and typing
-
+.PP
cat /dev/vcs3 >foo
-
+.PP
Note that the output does not contain
newline characters, so some processing may be required, like
in
-
+.PP
fold \-w 81 /dev/vcs3 | lpr
-
+.PP
or (horrors)
-
+.PP
xetterm \-dump 3 \-file /proc/self/fd/1
-
+.PP
The
.I /dev/vcsa0
device is used for Braille support.
-
+.PP
This program displays the character and screen attributes under the
cursor of the second virtual console, then changes the background color
there:
-
+.PP
.nf
#include <unistd.h>
#include <stdlib.h>