1 .\" Copyright (c) 1994 Andries Brouwer (aeb@cwi.nl), Mon Oct 31 21:03:19 MET 1994
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.
8 .\" Modified, Sun Feb 26 14:58:45 1995, faith@cs.unc.edu
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>
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"
33 console \- ¥³¥ó¥½¡¼¥ëüËö (console terminal) ¤È²¾ÁÛ¥³¥ó¥½¡¼¥ë (virtual console)
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,
50 .\"O usually with mode 0622 and owner root.tty.
51 ¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë (device file) /dev/* ¤ÏÉáÄÌ MAKEDEV ¥¹¥¯¥ê¥×¥È¤Þ¤¿¤Ï
53 ¤ò»È¤Ã¤Æ¥â¡¼¥É 0622¡¢½êÍ¼Ô root.tty ¤È¤·¤ÆºîÀ®¤µ¤ì¤ë¡£
55 ¥«¡¼¥Í¥ë (kernel) ¥Ð¡¼¥¸¥ç¥ó 1.1.54 °ÊÁ°¤Ï¡¢²¾ÁÛ¥³¥ó¥½¡¼¥ë¤Î¿ô¤Ï¥³¥ó¥Ñ¥¤¥ë»þ¤Ë
56 (tty.h Ãæ¤Î : #define NR_CONSOLES 8 ¤Ë¤è¤Ã¤Æ) ¥«¡¼¥Í¥ë¤ËËä¤á¹þ¤Þ¤ì¤Æ¤¤¤¿¡£
57 ¤½¤·¤Æ¡¢¤½¤ì¤òÊѹ¹¤·¤Æ¥³¥ó¥Ñ¥¤¥ë¤·Ä¾¤¹¤³¤È¤Ç²¾ÁÛ¥³¥ó¥½¡¼¥ë¤Î¿ô¤òÊѹ¹¤Ç¤¤¿¡£
58 ¥«¡¼¥Í¥ë¥Ð¡¼¥¸¥ç¥ó 1.1.54 °Ê¹ß¤Ç¤Ï²¾ÁÛ¥³¥ó¥½¡¼¥ë¤¬É¬ÍפȤµ¤ì¤ë»þ¤Ï
59 ¤¹¤°¤ËÆ°ºîÃæ¤ËºîÀ®¤µ¤ì¤ë¡£
61 .\"O Common ways to start a process on a console are:
71 ¥³¥ó¥½¡¼¥ë¾å¤Ç¥×¥í¥»¥¹¤ò³«»Ï¤¹¤ë°ìÈÌŪ¤ÊÊýË¡¤Ï:
76 ¤ò¥¹¥¿¡¼¥È¤µ¤»¤ë¤³¤È¤ò
83 .\"O to start a process on the console;
84 (b) ¥³¥ó¥½¡¼¥ë¾å¤Ç¥×¥í¥»¥¹¤ò¥¹¥¿¡¼¥È¤¹¤ë¤³¤È¤ò
87 .\"O (c) start X \(em it 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 ¤½¤³¤Ëɽ¼¨¤ò½ÐÎϤ¹¤ë¡£(ÀΤʤ¬¤é¤Î
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
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)
114 (¥¡¼¥Þ¥Ã¥Ô¥ó¥°¤Ï¥æ¡¼¥¶¤¬¥»¥Ã¥È¤Ç¤¤ë¡¢
117 ¾å¤Ç½Ò¤Ù¤¿¥¡¼¥Ð¥¤¥ó¥É¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ë¤è¤ë¤â¤Î¤Ç¤¢¤ë)¡£
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.
125 ¥³¥Þ¥ó¥É(°ÊÁ°¤Ï \fBdisalloc\fP ¤È¤¤¤¦Ì¾Á°¤À¤Ã¤¿)¤Ï¡¢
126 ¥×¥í¥»¥¹¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤Æ¤¤¤Ê¤¤¥³¥ó¥½¡¼¥ë¤Î
127 ¥¹¥¯¥ê¡¼¥ó¥Ð¥Ã¥Õ¥¡ (screen buffer) ¤Î¤¿¤á¤Ë»È¤ï¤ì¤Æ¤¤¤ë¥á¥â¥ê¤ò²òÊü¤¹¤ë¡£
130 ¥³¥ó¥½¡¼¥ë¤Ï¿¤¯¤Î¾õÂÖ¤ò¤â¤Ã¤Æ¤¤¤ë¡£
131 »ä¤Ï¡¢¤½¤ì¤Ë¤Ä¤¤¤Æ¤¤¤Ä¤«¥É¥¥å¥á¥ó¥È¤Ë¤·¤¿¤¤¤È¹Í¤¨¤Æ¤¤¤ë¡£
132 ¤â¤Ã¤È¤â½ÅÍפʻö¼Â¤Ï¥³¥ó¥½¡¼¥ë¤Ï vt100 üËö¤ò¿¿»÷¤Æ¤¤¤ë
133 (¥·¥ß¥å¥ì¡¼¥È¤·¤Æ¤¤¤ë) ¤È¤¤¤¦¤³¤È¤Ç¤¢¤ë¡£
134 ¥³¥ó¥½¡¼¥ë¤Ï ESC c ¤È¤¤¤¦Æó¤Ä¤Îʸ»ú¤ò°õ»ú¤¹¤ë»ö¤Ë¤è¤Ã¤Æ¡¢
135 ½é´ü¾õÂ֤˥ꥻ¥Ã¥È¤µ¤ì¤ë¡£
136 ¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹ (escape sequences) ¤Ë¤Ä¤¤¤Æ¤Ï
137 .BR console_codes (4)
149 .BR console_codes (4),
150 .BR console_ioctl (4),