diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:07 +0000 |
commit | 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 (patch) | |
tree | 3ee7a3ec64525911fa865bb984c86d997d855527 /man4/vcs.4 | |
parent | Adding debian version 6.05.01-1. (diff) | |
download | manpages-3af6d22bb3850ab2bac67287e3a3d3b0e32868e5.tar.xz manpages-3af6d22bb3850ab2bac67287e3a3d3b0e32868e5.zip |
Merging upstream version 6.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man4/vcs.4')
-rw-r--r-- | man4/vcs.4 | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -7,7 +7,7 @@ .\" 2007-12-17, Samuel Thibault <samuel.thibault@ens-lyon.org>: .\" document the VT_GETHIFONTMASK ioctl .\" " -.TH vcs 4 2023-05-03 "Linux man-pages 6.05.01" +.TH vcs 4 2023-10-31 "Linux man-pages 6.7" .SH NAME vcs, vcsa \- virtual console memory .SH DESCRIPTION @@ -16,7 +16,7 @@ is a character device with major number 7 and minor number 0, usually with mode 0644 and ownership root:tty. It refers to the memory of the currently displayed virtual console terminal. -.PP +.P .I /dev/vcs[1\-63] are character devices for virtual console terminals, they have major number 7 and minor number 1 to 63, usually @@ -36,7 +36,7 @@ dimensions and cursor position: = .I y = 0 at the top left corner of the screen.) -.PP +.P When a 512-character font is loaded, the 9th bit position can be fetched by applying the .BR ioctl (2) @@ -50,16 +50,16 @@ the value is returned in the pointed to by the third .BR ioctl (2) argument. -.PP +.P These devices replace the screendump .BR ioctl (2) operations of .BR ioctl_console (2), so the system administrator can control access using filesystem permissions. -.PP +.P The devices for the first eight virtual consoles may be created by: -.PP +.P .in +4n .EX for x in 0 1 2 3 4 5 6 7 8; do @@ -69,7 +69,7 @@ done chown root:tty /dev/vcs* .EE .in -.PP +.P No .BR ioctl (2) requests are supported. @@ -83,39 +83,39 @@ requests are supported. Introduced with Linux 1.1.92. .SH EXAMPLES You may do a screendump on vt3 by switching to vt1 and typing -.PP +.P .in +4n .EX cat /dev/vcs3 >foo .EE .in -.PP +.P Note that the output does not contain newline characters, so some processing may be required, like in -.PP +.P .in +4n .EX fold \-w 81 /dev/vcs3 | lpr .EE .in -.PP +.P or (horrors) -.PP +.P .in +4n .EX setterm \-dump 3 \-file /proc/self/fd/1 .EE .in -.PP +.P The .I /dev/vcsa0 device is used for Braille support. -.PP +.P This program displays the character and screen attributes under the cursor of the second virtual console, then changes the background color there: -.PP +.P .EX #include <unistd.h> #include <stdlib.h> |