#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:57+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man4/vcs.4:29 #, no-wrap msgid "VCS" msgstr "" #. type: TH #: man-pages/man4/vcs.4:29 #, no-wrap msgid "2007-12-17" msgstr "" #. type: TH #: man-pages/man4/vcs.4:29 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man4/vcs.4:29 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man4/vcs.4:30 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:32 msgid "vcs, vcsa - virtual console memory" msgstr "" #. type: SH #: man-pages/man4/vcs.4:32 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:38 msgid "" "I is a character device with major number 7 and minor number 0, " "usually of mode 0644 and owner root.tty. It refers to the memory of the " "currently displayed virtual console terminal." msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:58 msgid "" "I are character devices for virtual console terminals, they " "have major number 7 and minor number 1 to 63, usually mode 0644 and owner " "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 #: man-pages/man4/vcs.4:72 msgid "" "When a 512-character font is loaded, the 9th bit position can be fetched by " "applying the B(2) B operation (available in Linux " "kernels 2.6.18 and above) on I; the value is returned in " "the I pointed to by the third B(2) argument." msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:79 msgid "" "These devices replace the screendump B(2) operations of " "B(4), so the system administrator can control access using " "filesystem permissions." msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:81 msgid "The devices for the first eight virtual consoles may be created by:" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:88 #, 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 #: man-pages/man4/vcs.4:93 msgid "No B(2) requests are supported." msgstr "" #. type: SH #: man-pages/man4/vcs.4:93 #, no-wrap msgid "FILES" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:95 msgid "/dev/vcs[0-63]" msgstr "" #. .SH AUTHOR #. Andries Brouwer #. type: Plain text #: man-pages/man4/vcs.4:99 msgid "/dev/vcsa[0-63]" msgstr "" #. type: SH #: man-pages/man4/vcs.4:99 #, no-wrap msgid "VERSIONS" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:101 msgid "Introduced with version 1.1.92 of the Linux kernel." msgstr "" #. type: SH #: man-pages/man4/vcs.4:101 #, no-wrap msgid "EXAMPLE" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:103 msgid "You may do a screendump on vt3 by switching to vt1 and typing" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:105 #, no-wrap msgid " cat /dev/vcs3 Efoo\n" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:109 msgid "" "Note that the output does not contain newline characters, so some processing " "may be required, like in" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:111 #, no-wrap msgid " old -w 81 /dev/vcs3 | lpr\n" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:113 msgid "or (horrors)" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:115 #, no-wrap msgid " xetterm -dump 3 -file /proc/self/fd/1\n" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:120 msgid "The I device is used for Braille support." msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:124 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 #: man-pages/man4/vcs.4:132 #, 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 #: man-pages/man4/vcs.4:143 #, 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 ch, attrib;\n" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:172 #, 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), 0);\n" " (void) read(fd, &s, 2);\n" " ch = s & 0xff;\n" " if (attrib & mask)\n" " ch |= 0x100;\n" " attrib = ((s & ~mask) EE 8);\n" " printf(\"ch=\\(aq%c\\(aq attrib=0x%02x\\en\", ch, attrib);\n" " attrib ^= 0x10;\n" " (void) lseek(fd, -1, 1);\n" " (void) write(fd, &attrib, 1);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. type: SH #: man-pages/man4/vcs.4:173 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:178 msgid "B(4), B(4), B(4), B(8)" msgstr "" #. type: SH #: man-pages/man4/vcs.4:178 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man4/vcs.4:186 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""