OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[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)