# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2024-06-01 06:34+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "vcs" msgstr "" #. type: TH #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "2024-05-02" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.8" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "vcs, vcsa - virtual console memory" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "I 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." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "I are character devices for virtual console terminals, they " "have major number 7 and minor number 1 to 63, usually mode 0644 and " "ownership root:tty. I are the same, but using Is (in host byte order) that include attributes, and prefixed with four " "bytes giving the screen dimensions and cursor position: I, " "I, I, I. (I = I = 0 at the top left corner of the " "screen.)" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "When a 512-character font is loaded, the 9th bit position can be fetched by " "applying the B(2) B operation (available since " "Linux 2.6.18) on I; the value is returned in the I pointed to by the third B(2) argument." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "These devices replace the screendump B(2) operations of " "B(2), so the system administrator can control access using " "filesystem permissions." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The devices for the first eight virtual consoles may be created by:" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "for x in 0 1 2 3 4 5 6 7 8; do\n" " mknod -m 644 /dev/vcs$x c 7 $x;\n" " mknod -m 644 /dev/vcsa$x c 7 $[$x+128];\n" "done\n" "chown root:tty /dev/vcs*\n" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "No B(2) requests are supported." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "FILES" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "I" msgstr "" #. .SH AUTHOR #. Andries Brouwer #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "I" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Introduced with Linux 1.1.92." msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "You may do a screendump on vt3 by switching to vt1 and typing" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "cat /dev/vcs3 Efoo\n" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "Note that the output does not contain newline characters, so some processing " "may be required, like in" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "fold -w 81 /dev/vcs3 | lpr\n" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "or (horrors)" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "setterm -dump 3 -file /proc/self/fd/1\n" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The I device is used for Braille support." msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "This program displays the character and screen attributes under the cursor " "of the second virtual console, then changes the background color there:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid "" "#include Eunistd.hE\n" "#include Estdlib.hE\n" "#include Estdio.hE\n" "#include Efcntl.hE\n" "#include Esys/ioctl.hE\n" "#include Elinux/vt.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd;\n" " char *device = \"/dev/vcsa2\";\n" " char *console = \"/dev/tty2\";\n" " struct {unsigned char lines, cols, x, y;} scrn;\n" " unsigned short s;\n" " unsigned short mask;\n" " unsigned char attrib;\n" " int ch;\n" "\\&\n" " fd = open(console, O_RDWR);\n" " if (fd E 0) {\n" " perror(console);\n" " exit(EXIT_FAILURE);\n" " }\n" " if (ioctl(fd, VT_GETHIFONTMASK, &mask) E 0) {\n" " perror(\"VT_GETHIFONTMASK\");\n" " exit(EXIT_FAILURE);\n" " }\n" " (void) close(fd);\n" " fd = open(device, O_RDWR);\n" " if (fd E 0) {\n" " perror(device);\n" " exit(EXIT_FAILURE);\n" " }\n" " (void) read(fd, &scrn, 4);\n" " (void) lseek(fd, 4 + 2*(scrn.y*scrn.cols + scrn.x), SEEK_SET);\n" " (void) read(fd, &s, 2);\n" " ch = s & 0xff;\n" " if (s & mask)\n" " ch |= 0x100;\n" " attrib = ((s & \\[ti]mask) EE 8);\n" " printf(\"ch=%#03x attrib=%#02x\\en\", ch, attrib);\n" " s \\[ha]= 0x1000;\n" " (void) lseek(fd, -2, SEEK_CUR);\n" " (void) write(fd, &s, 2);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "B(2), B(4), B(4), B(8)" msgstr "" #. type: TH #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "2023-02-05" msgstr "" #. type: TH #: debian-bookworm #, no-wrap msgid "Linux man-pages 6.03" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "#include Eunistd.hE\n" "#include Estdlib.hE\n" "#include Estdio.hE\n" "#include Efcntl.hE\n" "#include Esys/ioctl.hE\n" "#include Elinux/vt.hE\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "int\n" "main(void)\n" "{\n" " int fd;\n" " char *device = \"/dev/vcsa2\";\n" " char *console = \"/dev/tty2\";\n" " struct {unsigned char lines, cols, x, y;} scrn;\n" " unsigned short s;\n" " unsigned short mask;\n" " unsigned char attrib;\n" " int ch;\n" msgstr "" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " fd = open(console, O_RDWR);\n" " if (fd E 0) {\n" " perror(console);\n" " exit(EXIT_FAILURE);\n" " }\n" " if (ioctl(fd, VT_GETHIFONTMASK, &mask) E 0) {\n" " perror(\"VT_GETHIFONTMASK\");\n" " exit(EXIT_FAILURE);\n" " }\n" " (void) close(fd);\n" " fd = open(device, O_RDWR);\n" " if (fd E 0) {\n" " perror(device);\n" " exit(EXIT_FAILURE);\n" " }\n" " (void) read(fd, &scrn, 4);\n" " (void) lseek(fd, 4 + 2*(scrn.y*scrn.cols + scrn.x), SEEK_SET);\n" " (void) read(fd, &s, 2);\n" " ch = s & 0xff;\n" " if (s & mask)\n" " ch |= 0x100;\n" " attrib = ((s & \\[ti]mask) EE 8);\n" " printf(\"ch=%#03x attrib=%#02x\\en\", ch, attrib);\n" " s \\[ha]= 0x1000;\n" " (void) lseek(fd, -2, SEEK_CUR);\n" " (void) write(fd, &s, 2);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. type: TH #: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "2023-10-31" msgstr "" #. type: TH #: fedora-40 mageia-cauldron #, no-wrap msgid "Linux man-pages 6.06" msgstr "" #. type: TH #: fedora-rawhide #, no-wrap msgid "Linux man-pages 6.7" msgstr "" #. type: TH #: opensuse-leap-15-6 #, no-wrap msgid "Linux man-pages 6.04" msgstr "" #. type: TH #: opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""