diff options
Diffstat (limited to 'templates/man4/vcs.4.pot')
-rw-r--r-- | templates/man4/vcs.4.pot | 377 |
1 files changed, 377 insertions, 0 deletions
diff --git a/templates/man4/vcs.4.pot b/templates/man4/vcs.4.pot new file mode 100644 index 00000000..be49de67 --- /dev/null +++ b/templates/man4/vcs.4.pot @@ -0,0 +1,377 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-03-01 17:13+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\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 fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +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</dev/vcs0> 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</dev/vcs[1-63]> 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</dev/vcsa[0-63]> are the same, but using I<unsigned " +"short>s (in host byte order) that include attributes, and prefixed with four " +"bytes giving the screen dimensions and cursor position: I<lines>, " +"I<columns>, I<x>, I<y>. (I<x> = I<y> = 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<ioctl>(2) B<VT_GETHIFONTMASK> operation (available since " +"Linux 2.6.18) on I</dev/tty[1-63]>; the value is returned in the I<unsigned " +"short> pointed to by the third B<ioctl>(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<ioctl>(2) operations of " +"B<ioctl_console>(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<ioctl>(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</dev/vcs[0-63]>" +msgstr "" + +#. .SH AUTHOR +#. Andries Brouwer <aeb@cwi.nl> +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "I</dev/vcsa[0-63]>" +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 E<gt>foo\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</dev/vcsa0> 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 E<lt>unistd.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>fcntl.hE<gt>\n" +"#include E<lt>sys/ioctl.hE<gt>\n" +"#include E<lt>linux/vt.hE<gt>\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<lt> 0) {\n" +" perror(console);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" if (ioctl(fd, VT_GETHIFONTMASK, &mask) E<lt> 0) {\n" +" perror(\"VT_GETHIFONTMASK\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" (void) close(fd);\n" +" fd = open(device, O_RDWR);\n" +" if (fd E<lt> 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) E<gt>E<gt> 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<ioctl_console>(2), B<tty>(4), B<ttyS>(4), B<gpm>(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 E<lt>unistd.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>fcntl.hE<gt>\n" +"#include E<lt>sys/ioctl.hE<gt>\n" +"#include E<lt>linux/vt.hE<gt>\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<lt> 0) {\n" +" perror(console);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" if (ioctl(fd, VT_GETHIFONTMASK, &mask) E<lt> 0) {\n" +" perror(\"VT_GETHIFONTMASK\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" (void) close(fd);\n" +" fd = open(device, O_RDWR);\n" +" if (fd E<lt> 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) E<gt>E<gt> 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 +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-05-03" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "" |