OSDN Git Service

05c0f02ed83802f3872890acdcebe8858b29cf5e
[linuxjm/LDP_man-pages.git] / draft / man4 / console.4
1 .\" Copyright (c) 1994 Andries Brouwer (aeb@cwi.nl), Mon Oct 31 21:03:19 MET 1994
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" Modified, Sun Feb 26 14:58:45 1995, faith@cs.unc.edu
9 .\"
10 .\" Japanese Version Copyright (c) 1996,1997,1998 ISHIKAWA Mutsumi
11 .\"         all rights reserved.
12 .\" Translated Sun Jan  4 16:25:42 JST 1998
13 .\"         by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
14 .\" Updated Wed Jan  9 JST 2002 by Kentaro Shirakata <argrath@ub32.org>
15 .\"
16 .\" WORD:       console                 コンソール
17 .\" WORD:       terminal                端末
18 .\" WORD:       virtual                 仮想
19 .\" WORD:       major number            メジャーナンバー
20 .\" WORD:       minor number            マイナーナンバー
21 .\" WORD:       character device        キャラクターデバイス
22 .\" WORD:       device file             デバイスファイル
23 .\" WORD:       kernel                  カーネル
24 .\" WORD:       compile                 コンパイル
25 .\" WORD:       key mapping             キーマッピング
26 .\" WORD:       screen buffer           スクリーンバッファ
27 .\" WORD:       simulate                シミュレート
28 .\" WORD:       escape sequence         エスケープシーケンス
29 .\" WORD:       initial state           初期状態
30 .\" WORD:       reset                   リセット
31 .TH CONSOLE 4 1994-10-31 "Linux" "Linux Programmer's Manual"
32 .SH 名前
33 console \- コンソール端末 (console terminal) と仮想コンソール (virtual console)
34 .SH 説明
35 .\"O A Linux system has up to 63 \fIvirtual consoles\fP
36 .\"O (character devices with major number 4 and minor number 1 to 63),
37 .\"O usually called \fI/dev/tty\fP\fIn\fP with 1 \(<= \fIn\fP \(<= 63.
38 Linux システムは普通、\fI/dev/tty\fP\fIn\fP (n は 1 \(<= \fIn\fP \(<=
39 63) と呼ばれる\fI仮想コンソール\fP (メジャーナンバー (major number)
40 4 マイナーナンバー (minor number) 1 から 63 のキャラクターデバイス
41 (character device)) を持つ。
42 .\"O The current console is also addressed by
43 .\"O \fI/dev/console\fP or \fI/dev/tty0\fP, the character device with
44 .\"O major number 4 and minor number 0.
45 現在のコンソールは \fI/dev/console\fP または \fI/dev/tty0\fP (メジャー
46 ナンバー 4 マイナーナンバー 0 のキャラクターデバイス) によっても扱える。
47 .\"O The device files /dev/* are usually created using the script MAKEDEV,
48 .\"O or using
49 .\"O .BR mknod (1),
50 .\"O usually with mode 0622 and owner root.tty.
51 デバイスファイル (device file) /dev/* は普通 MAKEDEV スクリプトまたは
52 .BR mknod (1)
53 を使ってモード 0622、所有者 root.tty として作成される。
54 .LP
55 カーネル (kernel) バージョン 1.1.54 以前は、仮想コンソールの数はコンパイル時に
56 (tty.h 中の : #define NR_CONSOLES 8 によって) カーネルに埋め込まれていた。
57 そして、それを変更してコンパイルし直すことで仮想コンソールの数を変更できた。
58 カーネルバージョン 1.1.54 以降では仮想コンソールが必要とされる時は
59 すぐに動作中に作成される。
60 .LP
61 .\"O Common ways to start a process on a console are:
62 .\"O (a) tell
63 .\"O .BR init (8)
64 .\"O (in
65 .\"O .BR inittab (5))
66 .\"O to start a
67 .\"O .BR mingetty (8)
68 .\"O (or
69 .\"O .BR agetty (8))
70 .\"O on the console;
71 コンソール上でプロセスを開始する一般的な方法は:
72 (a) コンソール上で
73 .BR mingetty (8)
74 (または
75 .BR agetty (8))
76 をスタートさせることを
77 .RB ( inittab (5)
78 の中で)
79 .BR init (8)
80 に伝える。
81 .\"O (b) ask
82 .\"O .BR openvt (1)
83 .\"O to start a process on the console;
84 (b) コンソール上でプロセスをスタートすることを
85 .BR openvt (1)
86 に頼む。
87 .\"O (c) start X\(emit will find the first unused console,
88 .\"O and display its output there.
89 .\"O (There is also the ancient
90 .\"O .BR doshell (8).)
91 (c) X を開始する - X は使われていないコンソールのうち最初のものを見付け、
92 そこに表示を出力する。(昔ながらの
93 .BR doshell (8)
94 もある。)
95 .LP
96 .\"O Common ways to switch consoles are: (a) use Alt+F\fIn\fP or
97 .\"O Ctrl+Alt+F\fIn\fP to switch to console \fIn\fP; AltGr+F\fIn\fP
98 .\"O might bring you to console \fIn\fP+12 [here Alt and AltGr refer
99 .\"O to the left and right Alt keys, respectively];
100 コンソールを切り替える一般的な方法は: (a)コンソール \fIn\fP に切り替える
101 ために Alt+F\fIn\fP または Ctrl+Alt+F\fIn\fP を使う。
102 AltGr+F\fIn\fP を使うと、おそらくコンソール \fIn\fP+12 に切り替わる
103 [ここでの Alt と AltGr はそれぞれ左右の Alt キーを示す]。
104 .\"O (b) use Alt+RightArrow or Alt+LeftArrow to cycle through
105 .\"O the presently allocated consoles; (c) use the program
106 .\"O .BR chvt (1).
107 .\"O (The key mapping is user settable, see
108 .\"O .BR loadkeys (1);
109 .\"O the above mentioned key combinations are according to the default settings.)
110 (b) 現在割り当てられているコンソールを循環するために Alt + 右矢印キー
111 または Alt + 左矢印キーを使う。(c)
112 .BR chvt (1)
113 プログラムを使う
114 (キーマッピングはユーザがセットできる、
115 .BR loadkeys (1)
116 を見よ。
117 上で述べたキーバインドはデフォルトの設定によるものである)。
118 .LP
119 .\"O The command
120 .\"O .BR deallocvt (1)
121 .\"O (formerly \fBdisalloc\fP)
122 .\"O will free the memory taken by the screen buffers for consoles
123 .\"O that no longer have any associated process.
124 .BR deallocvt (1)
125 コマンド(以前は \fBdisalloc\fP という名前だった)は、
126 プロセスに結びつけられていないコンソールの
127 スクリーンバッファ (screen buffer) のために使われているメモリを解放する。
128 .\"O .SS Properties
129 .SS 特性
130 コンソールは多くの状態をもっている。
131 私は、それについていつかドキュメントにしたいと考えている。
132 もっとも重要な事実はコンソールは vt100 端末を真似ている
133 (シミュレートしている) ということである。
134 コンソールは ESC c という二つの文字を印字する事によって、
135 初期状態にリセットされる。
136 エスケープシーケンス (escape sequences) については
137 .BR console_codes (4)
138 で全て説明してある。
139 .SH ファイル
140 .I /dev/console
141 .br
142 .I /dev/tty*
143 .SH 関連項目
144 .BR chvt (1),
145 .BR deallocvt (1),
146 .BR loadkeys (1),
147 .BR mknod (1),
148 .BR openvt (1),
149 .BR console_codes (4),
150 .BR console_ioctl (4),
151 .BR tty (4),
152 .BR ttyS (4),
153 .BR charsets (7),
154 .BR agetty (8),
155 .BR init (8),
156 .BR mapscrn (8),
157 .BR mingetty (8),
158 .BR resizecons (8),
159 .BR setfont (8)