OSDN Git Service

db04f5959ff62122bbcb279475a5e5d324722bb7
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man5 / termcap.5
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\"     Fri Apr  2 11:32:09 MET DST 1993
3 .\"
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified formatting Sat Jul 24 17:13:38 1993, Rik Faith (faith@cs.unc.edu)
26 .\" Modified (extensions and corrections)
27 .\"   Sun May  1 14:21:25 MET DST 1994 Michael Haardt
28 .\"   If mistakes in the capabilities are found, please send a bug report to:
29 .\"   michael@moria.de
30 .\" Modified Mon Oct 21 17:47:19 EDT 1996 by Eric S. Raymond (esr@thyrsus.com)
31 .\"*******************************************************************
32 .\"
33 .\" This file was generated with po4a. Translate the source file.
34 .\"
35 .\"*******************************************************************
36 .\"
37 .\" Japanese Version Copyright (c) 1999 NOKUBI Takatsugu
38 .\"     all rights reserved.
39 .\" Translated Fri Jan 29 13:09:56 JST 1999
40 .\"     by NOKUBI Takatsugu <knok@daionet.gr.jp>
41 .\" Proofed & Modified Thu 12 Oct 2000
42 .\"     by NAKANO Takeo <nakano@apm.seikei.ac.jp>
43 .\"
44 .TH TERMCAP 5 2020\-08\-13 Linux "Linux Programmer's Manual"
45 .SH 名前
46 termcap \- 端末機能のデータベース
47 .SH 説明
48 The termcap database is an obsolete facility for describing the capabilities
49 of character\-cell terminals and printers.  It is retained only for
50 compatibility with old programs; new programs should use the \fBterminfo\fP(5)
51 database and associated libraries.
52 .PP
53 \fI/etc/termcap\fP は、多くの異なる種類の端末に関する機能を列記したアスキーファイル (データベースマスター) である。 プログラムは
54 termcap を読み込んで、 実際に使用している端末に個別のエスケープコード群を取得する。
55 これを用いると、その端末の視覚的な性質を制御することができる (端末の他の性質は \fBstty\fP(1)  で制御する)。 termcap
56 データベースは、環境変数 \fBTERM\fP の値で引かれる。
57 .PP
58 termcap のエントリーは、単一の論理行でなければならない。 ただし、行末に \(aq\e\(aq を用いればそこでの改行を抑制することができる。
59 フィールドは \(aq:\(aq で分割される。 各エントリーの最初のフィールドは左側先頭から始まり、
60 内容はその端末の名前のリストである。名前の区切りには \(aq|\(aq が用いられる。
61 .PP
62 The first subfield may (in BSD termcap entries from versions 4.3 and
63 earlier) contain a short name consisting of two characters.  This short name
64 may consist of capital or small letters.  In 4.4BSD, termcap entries this
65 field is omitted.
66 .PP
67 2 番目 (最新の 4.4BSD フォーマットでは 1 番目) のサブフィールドには、 環境変数 \fBTERM\fP で用いられる名称が入る。
68 このフィールドには小文字しか使えない。 選択可能なハードウェア機能は、ハイフンと接尾語 (suffix)
69 を名称の後に追加することによって示す必要がある。以下の例を見よ。 慣習的な接尾語には、w (80 文字以上の幅がある)、 am (automatic
70 margins: 自動的な行の折り返し)、 nam (non automatic margins: 自動的でない行の折り返し)、 rv (reverse
71 video display: 反転ビデオ表示)  などがある。 3番目のサブフィールドには、
72 このtermcapエントリーに対する長い説明的な名称が入る。
73 .PP
74 この後に続くフィールドには、端末の機能を記述する。 機能を記述する行が継続する場合は、 左端から1つのタブをおいてインデントしなければならない。
75 .PP
76 順序については定義されていないが、 大文字小文字は区別せずにアルファベット順にならべ、
77 始めはブール値の、次は数値の、最後は文字列の機能を書くことが推奨されている。 同じような働きをする機能は 1 行にまとめて書くと良い。
78 .PP
79 Example for:
80 .nf
81 .PP
82 Head line: vt|vt101|DEC VT 101 terminal in 80 character mode:\e
83 Head line: Vt|vt101\-w|DEC VT 101 terminal in (wide) 132 character mode:\e
84 Boolean: :bs:\e
85 Numeric: :co#80:\e
86 String: :sr=\eE[H:\e
87 .fi
88 .SS ブール値で指定する機能
89 .nf
90 5i      Printer will not echo on screen
91 am      Automatic margins which means automatic line wrap
92 bs      Control\-H (8 dec.) performs a backspace
93 bw      Backspace on left margin wraps to previous line and right margin
94 da      Display retained above screen
95 db      Display retained below screen
96 eo      A space erases all characters at cursor position
97 es      Escape sequences and special characters work in status line
98 gn      Generic device
99 hc      This is a hardcopy terminal
100 HC      The cursor is hard to see when not on bottom line
101 hs      Has a status line
102 hz      Hazeltine bug, the terminal can not print tilde characters
103 in      Terminal inserts null bytes, not spaces, to fill whitespace
104 km      Terminal has a meta key
105 mi      Cursor movement works in insert mode
106 ms      Cursor movement works in standout/underline mode
107 NP      No pad character
108 NR      ti does not reverse te
109 nx      No padding, must use XON/XOFF
110 os      Terminal can overstrike
111 ul      Terminal underlines although it can not overstrike
112 xb      Beehive glitch, f1 sends ESCAPE, f2 sends \fB\(haC\fP
113 xn      Newline/wraparound glitch
114 xo      Terminal uses xon/xoff protocol
115 xs      Text typed over standout text will be displayed in standout
116 xt      Teleray glitch, destructive tabs and odd standout mode
117 .fi
118 .SS 数値で指定する機能
119 .nf
120 co      端末の行数
121 dB      ハードコピー端末において、バックスペースに必要な遅延時間 (ミリ秒単位)
122 dC      ハードコピー端末において、復帰に必要な遅延時間 (ミリ秒単位)
123 dF      ハードコピー端末において、頁送りに必要な遅延時間 (ミリ秒単位)
124 dN      ハードコピー端末において、改行に必要な遅延時間 (ミリ秒単位)
125 dT      ハードコピー端末において、タブストップに必要な遅延時間 (ミリ秒単位)
126 dV      ハードコピー端末において、垂直タブに必要な遅延時間 (ミリ秒単位)
127 it      タブ位置間の文字数
128 lh      ソフトラベルの高さ
129 lm      画面メモリーに収容できる行数
130 lw      ソフトラベルの幅
131 li      行数
132 Nl      ソフトラベルの数
133 pb      パディングが必要となる最低のボーレート
134 sg      強調表示の不具合 (強調表示に切替えたときに表示されるスペースの数)
135 ug      下線表示の不具合 (強調表示に切替えたときに表示されるスペースの数)
136 vt      仮想端末番号
137 ws      ステータス行の幅 (画面幅と異なる場合)
138 .fi
139 .SS 文字列で指定する機能
140 .nf
141 !1      shifted save key
142 !2      shifted suspend key
143 !3      shifted undo key
144 #1      shifted help key
145 #2      shifted home key
146 #3      shifted input key
147 #4      shifted cursor left key
148 %0      redo key
149 %1      help key
150 %2      mark key
151 %3      message key
152 %4      move key
153 %5      next\-object key
154 %6      open key
155 %7      options key
156 %8      previous\-object key
157 %9      print key
158 %a      shifted message key
159 %b      shifted move key
160 %c      shifted next key
161 %d      shifted options key
162 %e      shifted previous key
163 %f      shifted print key
164 %g      shifted redo key
165 %h      shifted replace key
166 %i      shifted cursor right key
167 %j      shifted resume key
168 &0      shifted cancel key
169 &1      reference key
170 &2      refresh key
171 &3      replace key
172 &4      restart key
173 &5      resume key
174 &6      save key
175 &7      suspend key
176 &8      undo key
177 &9      shifted begin key
178 *0      shifted find key
179 *1      shifted command key
180 *2      shifted copy key
181 *3      shifted create key
182 *4      shifted delete character
183 *5      shifted delete line
184 *6      select key
185 *7      shifted end key
186 *8      shifted clear line key
187 *9      shifted exit key
188 @0      find key
189 @1      begin key
190 @2      cancel key
191 @3      close key
192 @4      command key
193 @5      copy key
194 @6      create key
195 @7      end key
196 @8      enter/send key
197 @9      exit key
198 al      Insert one line
199 AL      Insert %1 lines
200 ac      Pairs of block graphic characters to map alternate character set
201 ae      End alternative character set
202 as      Start alternative character set for block graphic characters
203 bc      Backspace, if not \fB\(haH\fP
204 bl      Audio bell
205 bt      Move to previous tab stop
206 cb      Clear from beginning of line to cursor
207 cc      Dummy command character
208 cd      Clear to end of screen
209 ce      Clear to end of line
210 ch      Move cursor horizontally only to column %1
211 cl      Clear screen and cursor home
212 cm      Cursor move to row %1 and column %2 (on screen)
213 CM      Move cursor to row %1 and column %2 (in memory)
214 cr      Carriage return
215 cs      Scroll region from line %1 to %2
216 ct      Clear tabs
217 cv      Move cursor vertically only to line %1
218 dc      Delete one character
219 DC      Delete %1 characters
220 dl      Delete one line
221 DL      Delete %1 lines
222 dm      Begin delete mode
223 do      Cursor down one line
224 DO      Cursor down #1 lines
225 ds      Disable status line
226 eA      Enable alternate character set
227 ec      Erase %1 characters starting at cursor
228 ed      End delete mode
229 ei      End insert mode
230 ff      Formfeed character on hardcopy terminals
231 fs      Return character to its position before going to status line
232 F1      The string sent by function key f11
233 F2      The string sent by function key f12
234 F3      The string sent by function key f13
235 \&...   \&...
236 F9      The string sent by function key f19
237 FA      The string sent by function key f20
238 FB      The string sent by function key f21
239 \&...   \&...
240 FZ      The string sent by function key f45
241 Fa      The string sent by function key f46
242 Fb      The string sent by function key f47
243 \&...   \&...
244 Fr      The string sent by function key f63
245 hd      Move cursor a half line down
246 ho      Cursor home
247 hu      Move cursor a half line up
248 i1      Initialization string 1 at login
249 i3      Initialization string 3 at login
250 is      Initialization string 2 at login
251 ic      Insert one character
252 IC      Insert %1 characters
253 if      Initialization file
254 im      Begin insert mode
255 ip      Insert pad time and needed special characters after insert
256 iP      Initialization program
257 K1      upper left key on keypad
258 K2      center key on keypad
259 K3      upper right key on keypad
260 K4      bottom left key on keypad
261 K5      bottom right key on keypad
262 k0      Function key 0
263 k1      Function key 1
264 k2      Function key 2
265 k3      Function key 3
266 k4      Function key 4
267 k5      Function key 5
268 k6      Function key 6
269 k7      Function key 7
270 k8      Function key 8
271 k9      Function key 9
272 k;      Function key 10
273 ka      Clear all tabs key
274 kA      Insert line key
275 kb      Backspace key
276 kB      Back tab stop
277 kC      Clear screen key
278 kd      Cursor down key
279 kD      Key for delete character under cursor
280 ke      turn keypad off
281 kE      Key for clear to end of line
282 kF      Key for scrolling forward/down
283 kh      Cursor home key
284 kH      Cursor hown down key
285 kI      Insert character/Insert mode key
286 kl      Cursor left key
287 kL      Key for delete line
288 kM      Key for exit insert mode
289 kN      Key for next page
290 kP      Key for previous page
291 kr      Cursor right key
292 kR      Key for scrolling backward/up
293 ks      Turn keypad on
294 kS      Clear to end of screen key
295 kt      Clear this tab key
296 kT      Set tab here key
297 ku      Cursor up key
298 l0      Label of zeroth function key, if not f0
299 l1      Label of first function key, if not f1
300 l2      Label of first function key, if not f2
301 \&...   \&...
302 la      Label of tenth function key, if not f10
303 le      Cursor left one character
304 ll      Move cursor to lower left corner
305 LE      Cursor left %1 characters
306 LF      Turn soft labels off
307 LO      Turn soft labels on
308 mb      Start blinking
309 MC      Clear soft margins
310 md      Start bold mode
311 me      End all mode like so, us, mb, md, and mr
312 mh      Start half bright mode
313 mk      Dark mode (Characters invisible)
314 ML      Set left soft margin
315 mm      Put terminal in meta mode
316 mo      Put terminal out of meta mode
317 mp      Turn on protected attribute
318 mr      Start reverse mode
319 MR      Set right soft margin
320 nd      Cursor right one character
321 nw      Carriage return command
322 pc      Padding character
323 pf      Turn printer off
324 pk      Program key %1 to send string %2 as if typed by user
325 pl      Program key %1 to execute string %2 in local mode
326 pn      Program soft label %1 to show string %2
327 po      Turn the printer on
328 pO      Turn the printer on for %1 (<256) bytes
329 ps      Print screen contents on printer
330 px      Program key %1 to send string %2 to computer
331 r1      Reset string 1 to set terminal to sane modes
332 r2      Reset string 2 to set terminal to sane modes
333 r3      Reset string 3 to set terminal to sane modes
334 RA      disable automatic margins
335 rc      Restore saved cursor position
336 rf      Reset string filename
337 RF      Request for input from terminal
338 RI      Cursor right %1 characters
339 rp      Repeat character %1 for %2 times
340 rP      Padding after character sent in replace mode
341 rs      Reset string
342 RX      Turn off XON/XOFF flow control
343 sa      Set %1 %2 %3 %4 %5 %6 %7 %8 %9 attributes
344 SA      enable automatic margins
345 sc      Save cursor position
346 se      End standout mode
347 sf      Normal scroll one line
348 SF      Normal scroll %1 lines
349 so      Start standout mode
350 sr      Reverse scroll
351 SR      scroll back %1 lines
352 st      Set tabulator stop in all rows at current column
353 SX      Turn on XON/XOFF flow control
354 ta      move to next hardware tab
355 tc      Read in terminal description from another entry
356 te      End program that uses cursor motion
357 ti      Begin program that uses cursor motion
358 ts      Move cursor to column %1 of status line
359 uc      Underline character under cursor and move cursor right
360 ue      End underlining
361 up      Cursor up one line
362 UP      Cursor up %1 lines
363 us      Start underlining
364 vb      Visible bell
365 ve      Normal cursor visible
366 vi      Cursor invisible
367 vs      Standout cursor
368 wi      Set window from line %1 to %2 and column %3 to %4
369 XF      XOFF character if not \fB\(haS\fP
370 .fi
371 .PP
372 文字列機能の制御コードを定義するには、いくつかの方法がある。
373 .PP
374 Every normal character represents itself, except \(aq\(ha\(aq, \(aq\e\(aq,
375 and \(aq%\(aq.
376 .PP
377 A \fB\(hax\fP means Control\-x.  Control\-A equals 1 decimal.
378 .PP
379 \&\ex は特殊コードとして扱われる。x には以下の文字のどれかが入る。
380 .RS
381 E エスケープ (27)
382 .br
383 n ラインフィード (10)
384 .br
385 r 復帰 (13)
386 .br
387 t タブ (9)
388 .br
389 b バックスペース (8)
390 .br
391 f 頁送り (12)
392 .br
393 0 ヌルキャラクター。'\exxx' は 8 進数 xxx の文字を表す。
394 .RE
395 .IP i
396 パラメーターを 1 増加させる。
397 .IP r
398 一つのパラメーターをとる機能
399 .IP +
400 次の文字の値をパラメーターに追加し、バイナリで出力する
401 .IP 2
402 パラメーターを 2 桁の数字として ASCII 出力する (printf の %2d と同じ意味)
403 .IP d
404 パラメーターを数字として ASCII 出力する (printf の %d と同じ意味)
405 .IP %
406 \(aq%\(aq を表示する
407 .PP
408 バイナリ出力を行う場合、 文字列が終端されないようにヌル文字 (\(aq\e0\(aq) を避けねばならない。
409 タブ文字をパラメーターのバイナリ出力とする場合は、 タブ文字の展開をリセットしなければならない。
410 .IP 注意:
411 The above metacharacters for parameters may be wrong: they document Minix
412 termcap which may not be compatible with Linux termcap.
413 .PP
414 図形文字は 3 つの文字列機能で指定できる。
415 .IP as
416 代替文字セットの開始
417 .IP ae
418 end the alternative charset
419 .IP ac
420 文字列のペアの集合を指定する。 最初の文字は図形文字の名称で、 2 番目の文字はその定義である。
421 .PP
422 名称には以下のものがある。
423 .PP
424 .nf
425 +       right arrow (>)
426 ,       left arrow (<)
427 \&.     down arrow (v)
428 0       full square (#)
429 I       lantern (#)
430 \-      upper arrow (\(ha)
431 \&'     rhombus (+)
432 a       chess board (:)
433 f       degree (')
434 g       plus\-minus (#)
435 h       square (#)
436 j       right bottom corner (+)
437 k       right upper corner (+)
438 l       left upper corner (+)
439 m       left bottom corner (+)
440 n       cross (+)
441 o       upper horizontal line (\-)
442 q       middle horizontal line (\-)
443 s       bottom horizontal line (_)
444 t       left tee (+)
445 u       right tee (+)
446 v       bottom tee (+)
447 w       normal tee (+)
448 x       vertical line (|)
449 \(ti    paragraph (???)
450 .fi
451 .PP
452 The values in parentheses are suggested defaults which are used by the
453 \fIcurses\fP library, if the capabilities are missing.
454 .SH 関連項目
455 \fBncurses\fP(3), \fBtermcap\fP(3), \fBterminfo\fP(5)
456 .SH この文書について
457 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
458 \%https://www.kernel.org/doc/man\-pages/ に書かれている。