X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=draft%2Fman4%2Fvcs.4;h=8d7ea553e7e41ba9cf5037d5a24a41428c023c4b;hp=c777919faeb19e732b2557f31336956d0d663f5b;hb=1d98b26905be2ad5ba08a94d65f57d872bae4f85;hpb=38394e00bdc712dc8637aada383aebb3a95a9cbf diff --git a/draft/man4/vcs.4 b/draft/man4/vcs.4 index c777919f..8d7ea553 100644 --- a/draft/man4/vcs.4 +++ b/draft/man4/vcs.4 @@ -25,101 +25,33 @@ .\" 2007-12-17, Samuel Thibault : .\" document the VT_GETHIFONTMASK ioctl .\" " -.\" Japanese Version Copyright (c) 1996,1997,1998 ISHIKAWA Mutsumi -.\" all rights reserved. -.\" Translated Tue Feb 6 16:30:31 JST 1997 -.\" by ISHIKAWA Mutsumi +.\"******************************************************************* .\" -.\" Japanese Version Last Modified Sun Jan 11 03:55:54 1998 -.\" by ISHIKAWA Mutsumi -.\" Updated Sat Feb 10 23:17:30 JST 2001 -.\" by Yuichi SATO -.\" Updated 2008-02-12, Akihiro MOTOKI , LDP v2.77 +.\" This file was generated with po4a. Translate the source file. .\" -.\" WORD: virtual console 仮想コンソール -.\" WORD: memory メモリ -.\" WORD: permission パーミッション -.\" WORD: prefix プレフィックス -.\" WORD: screen スクリーン -.\" WORD: cursor カーソル -.\" WORD: Braille ブライユ点字 -.\" -.TH VCS 4 2007-12-17 "Linux" "Linux Programmer's Manual" -.\"O .SH NAME +.\"******************************************************************* +.TH VCS 4 2007\-12\-17 Linux "Linux Programmer's Manual" .SH 名前 -.\"O vcs, vcsa \- virtual console memory vcs, vcsa \- 仮想コンソールメモリ (virtual console memory) -.\"O .SH DESCRIPTION .SH 説明 -.\"O \fI/dev/vcs0\fP is a character device with major number 7 and minor number -.\"O 0, usually of mode 0644 and owner root.tty. -.\"O It refers to the memory of the currently -.\"O displayed virtual console terminal. -\fI/dev/vcs0\fP はメジャーナンバー (major number) 7、マイナーナンバー -(minor number) 0 のキャラクターデバイス (character device) で、 -通常、そのモードは 0644、オーナは root.tty である。 -このデバイスファイル (device file) は -現在表示されている仮想コンソール端末のメモリを参照する。 +\fI/dev/vcs0\fP はメジャーナンバー (major number) 7、マイナーナンバー (minor number) 0 +のキャラクターデバイス (character device) で、 通常、そのモードは 0644、オーナは root.tty である。 +このデバイスファイル (device file) は 現在表示されている仮想コンソール端末のメモリを参照する。 .LP -.\"O \fI/dev/vcs[1\-63]\fP are character devices for virtual console -.\"O terminals, they have major number 7 and minor number 1 to 63, usually -.\"O mode 0644 and owner root.tty. -.\"O \fI/dev/vcsa[0\-63]\fP are the same, but -.\"O using -.\"O .IR "unsigned short" s -.\"O (in host byte order) that include attributes, -.\"O and prefixed with four bytes giving the screen -.\"O dimensions and cursor position: \fIlines\fP, \fIcolumns\fP, \fIx\fP, \fIy\fP. -.\"O (\fIx\fP = \fIy\fP = 0 at the top left corner of the screen.) -\fB/dev/vcs[1\-63]\fP は仮想コンソール端末のための -キャラクターデバイスで、メジャーナンバーが 7、マイナーナンバーが 1 から 63、 -通常はモードが 0644、オーナーが root.tty である。 -\fB/dev/vcsa[0\-63]\fP は \fB/dev/vcs[1\-63]\fP と同様であるが、 -属性を格納するのに (ホストバイトオーダの) -.I "unsigned short" -を使用している点、スクリーンのサイズ・カーソルの位置を表す -4 バイトの情報 -\fIlines\fP, \fIcolumns\fP, \fIx\fP, \fIy\fP +\fB/dev/vcs[1\-63]\fP は仮想コンソール端末のための キャラクターデバイスで、メジャーナンバーが 7、マイナーナンバーが 1 から 63、 +通常はモードが 0644、オーナーが root.tty である。 \fB/dev/vcsa[0\-63]\fP は \fB/dev/vcs[1\-63]\fP +と同様であるが、 属性を格納するのに (ホストバイトオーダの) \fIunsigned short\fP +を使用している点、スクリーンのサイズ・カーソルの位置を表す 4 バイトの情報 \fIlines\fP, \fIcolumns\fP, \fIx\fP, \fIy\fP (\fIx\fP =\fIy\fP = 0 が画面の左上) が先頭にある点が異なる。 -.\"O When a 512-character font is loaded, -.\"O the 9th bit position can be fetched by applying the -.\"O .BR ioctl (2) -.\"O \fBVT_GETHIFONTMASK\fP operation -.\"O (available in Linux kernels 2.6.18 and above) -.\"O on \fI/dev/tty[1\-63]\fP; -.\"O the value is returned in the -.\"O .I "unsigned short" -.\"O pointed to by the third -.\"O .BR ioctl (2) -.\"O argument. -512 文字から成るフォントをロードした場合、 -9 ビット目の情報は \fI/dev/tty[1\-63]\fP に対して -.BR ioctl (2) -\fBVT_GETHIFONTMASK\fP 操作を行うことで取得できる -(\fBVT_GETHIFONTMASK\fP 操作はカーネル 2.6.18 以降の Linux で -利用可能である)。 -値は -.BR ioctl (2) -の 3 番目の引き数が指す -.I "unsigned short" +512 文字から成るフォントをロードした場合、 9 ビット目の情報は \fI/dev/tty[1\-63]\fP に対して \fBioctl\fP(2) +\fBVT_GETHIFONTMASK\fP 操作を行うことで取得できる (\fBVT_GETHIFONTMASK\fP 操作はカーネル 2.6.18 以降の +Linux で 利用可能である)。 値は \fBioctl\fP(2) の 3 番目の引き数が指す \fIunsigned short\fP に格納されて返される。 .PP -.\"O These devices replace the screendump -.\"O .BR ioctl (2) -.\"O operations of -.\"O .BR console (4), -.\"O so the system -.\"O administrator can control access using file system permissions. -これらのデバイスは -.BR console (4) -の screendump -.BR ioctl (2) -を代替となる。 -従って、システム管理者はファイルシステムパーミッション -(filesystem permission) を使ってアクセスをコントロールできる。 +これらのデバイスは \fBconsole\fP(4) の screendump \fBioctl\fP(2) を代替となる。 +従って、システム管理者はファイルシステムパーミッション (filesystem permission) を使ってアクセスをコントロールできる。 .PP -.\"O The devices for the first eight virtual consoles may be created by: 最初の 8 つの仮想端末のためのデバイスは、次のようにして作る事ができる: .nf @@ -130,48 +62,24 @@ vcs, vcsa \- 仮想コンソールメモリ (virtual console memory) chown root:tty /dev/vcs* .fi -.\"O No -.\"O .BR ioctl (2) -.\"O requests are supported. -.BR ioctl (2) -による要求はサポートされない。 -.\"O .SH FILES +\fBioctl\fP(2) による要求はサポートされない。 .SH ファイル /dev/vcs[0\-63] .br -/dev/vcsa[0\-63] -.\"O .\" .SH AUTHOR -.\" .SH 著者 +.\" .SH AUTHOR .\" Andries Brouwer -.\"O .SH VERSIONS +/dev/vcsa[0\-63] .SH バージョン -.\"O Introduced with version 1.1.92 of the Linux kernel. Linux カーネルバージョン 1.1.92 で導入された。 -.\"O .SH EXAMPLE .SH 例 -.\"O You may do a screendump on vt3 by switching to vt1 and typing -.\"O \fIcat /dev/vcs3 >foo\fP. -.\"O Note that the output does not contain -.\"O newline characters, so some processing may be required, like -.\"O in \fIfold \-w 81 /dev/vcs3 | lpr\fP or (horrors) -.\"O \fIsetterm \-dump 3 \-file /proc/self/fd/1\fP. -vt3 のスクリーンダンプを実行するには、端末を vt1 に切替えて -\fIcat /dev/vcs3 >foo\fP とタイプすればよい。 -気を付けて欲しいのは、この出力は改行文字 (newline character) を -含んでいないという事である。 -従って、\fIfold \-w 81 /dev/vcs3 | lpr\fP や -(ぞっとするが) \fIsetterm \-dump 3 \-file /proc/self/fd/1\fP のような +vt3 のスクリーンダンプを実行するには、端末を vt1 に切替えて \fIcat /dev/vcs3 >foo\fP とタイプすればよい。 +気を付けて欲しいのは、この出力は改行文字 (newline character) を 含んでいないという事である。 従って、\fIfold \-w 81 +/dev/vcs3 | lpr\fP や (ぞっとするが) \fIsetterm \-dump 3 \-file /proc/self/fd/1\fP のような 何らかの処理が必要になるかもしれない。 .LP -.\"O The \fI/dev/vcsa0\fP device is used for Braille support. -\fI/dev/vcsa0\fP デバイスを使うことで、 -ブライユ点字をサポートすることができる。 +\fI/dev/vcsa0\fP デバイスを使うことで、 ブライユ点字をサポートすることができる。 -.\"O This program displays the character and screen attributes under the -.\"O cursor of the second virtual console, then changes the background color -.\"O there: -以下のプログラムは二つ目の仮想コンソールのカーソル位置のスクリーン属性と文字 -を表示した後、カーソル位置の背景色を変更する : +以下のプログラムは二つ目の仮想コンソールのカーソル位置のスクリーン属性と文字 を表示した後、カーソル位置の背景色を変更する : .nf #include @@ -214,16 +122,12 @@ main(void) if (attrib & mask) ch |= 0x100; attrib = ((s & ~mask) >> 8); - printf("ch=\(aq%c\(aq attrib=0x%02x\\n", ch, attrib); + printf("ch=\(aq%c\(aq attrib=0x%02x\en", ch, attrib); attrib ^= 0x10; (void) lseek(fd, \-1, 1); (void) write(fd, &attrib, 1); exit(EXIT_SUCCESS); } .fi -.\"O .SH "SEE ALSO" .SH 関連項目 -.BR console (4), -.BR tty (4), -.BR ttyS (4), -.BR gpm (8) +\fBconsole\fP(4), \fBtty\fP(4), \fBttyS\fP(4), \fBgpm\fP(8)