1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\" Fri Apr 2 11:32:09 MET DST 1993
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.
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.
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.
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/>.
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:
30 .\" Modified Mon Oct 21 17:47:19 EDT 1996 by Eric S. Raymond (esr@thyrsus.com)
31 .\"*******************************************************************
33 .\" This file was generated with po4a. Translate the source file.
35 .\"*******************************************************************
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>
44 .TH TERMCAP 5 2020\-08\-13 Linux "Linux Programmer's Manual"
46 termcap \- 端末機能のデータベース
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.
53 \fI/etc/termcap\fP は、多くの異なる種類の端末に関する機能を列記したアスキーファイル (データベースマスター) である。 プログラムは
54 termcap を読み込んで、 実際に使用している端末に個別のエスケープコード群を取得する。
55 これを用いると、その端末の視覚的な性質を制御することができる (端末の他の性質は \fBstty\fP(1) で制御する)。 termcap
56 データベースは、環境変数 \fBTERM\fP の値で引かれる。
58 termcap のエントリーは、単一の論理行でなければならない。 ただし、行末に \(aq\e\(aq を用いればそこでの改行を抑制することができる。
59 フィールドは \(aq:\(aq で分割される。 各エントリーの最初のフィールドは左側先頭から始まり、
60 内容はその端末の名前のリストである。名前の区切りには \(aq|\(aq が用いられる。
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
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エントリーに対する長い説明的な名称が入る。
74 この後に続くフィールドには、端末の機能を記述する。 機能を記述する行が継続する場合は、 左端から1つのタブをおいてインデントしなければならない。
76 順序については定義されていないが、 大文字小文字は区別せずにアルファベット順にならべ、
77 始めはブール値の、次は数値の、最後は文字列の機能を書くことが推奨されている。 同じような働きをする機能は 1 行にまとめて書くと良い。
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
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
99 hc This is a hardcopy terminal
100 HC The cursor is hard to see when not on bottom 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
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
121 dB ハードコピー端末において、バックスペースに必要な遅延時間 (ミリ秒単位)
122 dC ハードコピー端末において、復帰に必要な遅延時間 (ミリ秒単位)
123 dF ハードコピー端末において、頁送りに必要な遅延時間 (ミリ秒単位)
124 dN ハードコピー端末において、改行に必要な遅延時間 (ミリ秒単位)
125 dT ハードコピー端末において、タブストップに必要な遅延時間 (ミリ秒単位)
126 dV ハードコピー端末において、垂直タブに必要な遅延時間 (ミリ秒単位)
133 pb パディングが必要となる最低のボーレート
134 sg 強調表示の不具合 (強調表示に切替えたときに表示されるスペースの数)
135 ug 下線表示の不具合 (強調表示に切替えたときに表示されるスペースの数)
137 ws ステータス行の幅 (画面幅と異なる場合)
142 !2 shifted suspend key
147 #4 shifted cursor left key
156 %8 previous\-object key
158 %a shifted message key
161 %d shifted options key
162 %e shifted previous key
165 %h shifted replace key
166 %i shifted cursor right key
167 %j shifted resume key
168 &0 shifted cancel key
179 *1 shifted command key
181 *3 shifted create key
182 *4 shifted delete character
183 *5 shifted delete line
186 *8 shifted clear line key
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
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)
215 cs Scroll region from line %1 to %2
217 cv Move cursor vertically only to line %1
218 dc Delete one character
219 DC Delete %1 characters
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
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
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
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
244 Fr The string sent by function key f63
245 hd Move cursor a half line down
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
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
273 ka Clear all tabs key
279 kD Key for delete character under cursor
281 kE Key for clear to end of line
282 kF Key for scrolling forward/down
284 kH Cursor hown down key
285 kI Insert character/Insert mode key
287 kL Key for delete line
288 kM Key for exit insert mode
290 kP Key for previous page
292 kR Key for scrolling backward/up
294 kS Clear to end of screen key
295 kt Clear this tab 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
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
309 MC Clear soft margins
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
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
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
347 sf Normal scroll one line
348 SF Normal scroll %1 lines
349 so Start standout mode
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
361 up Cursor up one line
362 UP Cursor up %1 lines
365 ve Normal cursor visible
368 wi Set window from line %1 to %2 and column %3 to %4
369 XF XOFF character if not \fB\(haS\fP
372 文字列機能の制御コードを定義するには、いくつかの方法がある。
374 Every normal character represents itself, except \(aq\(ha\(aq, \(aq\e\(aq,
377 A \fB\(hax\fP means Control\-x. Control\-A equals 1 decimal.
379 \&\ex は特殊コードとして扱われる。x には以下の文字のどれかが入る。
393 0 ヌルキャラクター。'\exxx' は 8 進数 xxx の文字を表す。
400 次の文字の値をパラメーターに追加し、バイナリで出力する
402 パラメーターを 2 桁の数字として ASCII 出力する (printf の %2d と同じ意味)
404 パラメーターを数字として ASCII 出力する (printf の %d と同じ意味)
408 バイナリ出力を行う場合、 文字列が終端されないようにヌル文字 (\(aq\e0\(aq) を避けねばならない。
409 タブ文字をパラメーターのバイナリ出力とする場合は、 タブ文字の展開をリセットしなければならない。
411 The above metacharacters for parameters may be wrong: they document Minix
412 termcap which may not be compatible with Linux termcap.
414 図形文字は 3 つの文字列機能で指定できる。
418 end the alternative charset
420 文字列のペアの集合を指定する。 最初の文字は図形文字の名称で、 2 番目の文字はその定義である。
430 \- upper arrow (\(ha)
436 j right bottom corner (+)
437 k right upper corner (+)
438 l left upper corner (+)
439 m left bottom corner (+)
441 o upper horizontal line (\-)
442 q middle horizontal line (\-)
443 s bottom horizontal line (_)
452 The values in parentheses are suggested defaults which are used by the
453 \fIcurses\fP library, if the capabilities are missing.
455 \fBncurses\fP(3), \fBtermcap\fP(3), \fBterminfo\fP(5)
457 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
458 \%https://www.kernel.org/doc/man\-pages/ に書かれている。