TERMCAP(5) Linux Programmer’s Manual TERMCAP(5) 名前 termcap - 端末機能のデータベース 説明 termcap データベースは、文字単位で動作する端末やプリンタの機能を記述す るための旧式の機構である。この機構は古いプログラムを動作させるためだ け に保持されているので、新しいプログラムは terminfo(5) データベースとそれ に関連したライブラリを用いるべきである。 /etc/termcap は、多くの異なる種類の端末に関する機能を列記したアスキーフ ァイル (データベースマスター) である。プログラムは termcap を読み込んで 、実際に使用している端末に個別のエスケープコード群を取得する。これを 用 い ると、その端末の視覚的な性質を制御することができる (端末の他の性質は stty(1) で制御する)。 termcap データベースは、環境変数 TERM の値で引 か れる。 termcap の エントリは、単一の論理行でなければならない。ただし、行末に '\' を用いればそこでの改行を抑制することができる。フィールドは ':' で分 割 される。各エントリの最初のフィールドは左側先頭から始まり、内容はその 端末の名前のリストである。名前の区切りには '|' が用いられる。 最初のサブフィールドは (4.3 以前のバージョンのBSD termcap エントリでは) 2 文字からなる短い名前となっている。この短い名前は大文字もしくは小文字 で構成される。4.4BSD の termcap エントリでは、このフィールドは省略さ れ る。 2 番目 (最新の 4.4BSD フォーマットでは 1 番目) のサブフィールドには、環 境変数 TERM で用いられる名称が入る。このフィールドには小文字しか使え な い 。選択可能なハードウェア機能は、ハイフンと接尾語 (suffix) を名称の後 に追加することによって示す必要がある。以下の例を見よ。慣習的な接尾語 に は、w (80 文字以上の幅がある)、 am (automatic margins: 自動的な行の折り 返し)、 nam (non automatic margins: 自動的でない行の折 り 返 し) 、 rv (reverse video display: 反転ビデオ表示) などがある。 3番目のサブフィー ルドには、このtermcapエントリーに対する長い説明的な名称が入る。 この後に続くフィールドには、端末の機能を記述する。機能を記述する行が 継 続する場合は、左端から1つのタブをおいてインデントしなければならない。 順 序については定義されていないが、大文字小文字は区別せずにアルファベッ ト順にならべ、始めはブール値の、次は数値の、最後は文字列の機能を書く こ とが推奨されている。同じような働きをする機能は 1 行にまとめて書くと良い 。 例: Head line: vt|vt101|DEC VT 101 terminal in 80 character mode:\ Head line: Vt|vt101-w|DEC VT 101 terminal in (wide) 132 character mode:\ Boolean: :bs:\ Numeric: :co#80:\ String: :sr=\E[H:\ ブール値で指定する機能 5i プリンタはスクリーンにエコーしない am 自動マージン。自動的に行を折り返す bs コントロール H (キーコード 8) をバックスペースとして扱う bw 左端でのバックスペースを、上の行の右端に折り返す da 画面の上端から外れていた行を表示する (通常はマルチページ端末で) db 画面の下端から外れていた行を表示する (通常はマルチページ端末で) eo 空白文字はカーソル位置の全ての文字を消す es ステータス行上のエスケープシーケンスや特殊文字は有効に働く gn 一般的なデバイスである hc ハードコピー端末である HC 最下行にないカーソルは見づらい hs ステータス行がある hz チルダ文字が表示できない端末である (Hazeltine 端末のバグ) in ホワイトスペースを埋めるのに、スペースではなく NULL バイトを挿入する端末である km 端末にはメタキーがある mi 挿入モードでもカーソル移動ができる ms 強調/下線モードでもカーソル移動ができる NP パディング文字がない NR ti は te を反転しない nx パディングではなく、XON/XOFF を使わなければならない os 重ね打ちが可能な端末である ul 重ね打ちはできないが、下線表示のできる端末である xb f1 はエスケープを送信し、f2 は ^C を送信する (Beehive 端末の不具合) xn 改行/折り返しに不具合がある xo 端末は xon/xoff プロトコルを用いる xs 強調文字の上に出力された文字は強調文字として表示される xt 破壊的なタブと中途半端な強調モード (Teleray 端末の不具合) 数値で指定する機能 co 端末の行数 dB ハードコピー端末において、バックスペースに必要な遅延時間 (ミリ秒単位) dC ハードコピー端末において、復帰に必要な遅延時間 (ミリ秒単位) dF ハードコピー端末において、頁送りに必要な遅延時間 (ミリ秒単位) dN ハードコピー端末において、改行に必要な遅延時間 (ミリ秒単位) dT ハードコピー端末において、タブストップに必要な遅延時間 (ミリ秒単位) dV ハードコピー端末において、垂直タブに必要な遅延時間 (ミリ秒単位) it タブ位置間の文字数 lh ソフトラベルの高さ lm 画面メモリに収容できる行数 lw ソフトラベルの幅 li 行数 Nl ソフトラベルの数 pb パディングが必要となる最低のボーレート sg 強調表示の不具合 (強調表示に切替えたときに表示されるスペースの数) ug 下線表示の不具合 (強調表示に切替えたときに表示されるスペースの数) vt 仮想端末番号 ws ステータス行の幅 (画面幅と異なる場合) 文字列で指定する機能 !1 シフト状態の save キー !2 シフト状態の suspend キー !3 シフト状態の undo キー #1 シフト状態の help キー #2 シフト状態の home キー #3 シフト状態の input キー #4 シフト状態の左カーソルキー %0 redo キー %1 help キー %2 markキー %3 message キー %4 move キー %5 next-object キー %6 open キー %7 options キー %8 previous-object キー %9 print キー %a シフト状態の message キー %b シフト状態の move キー %c シフト状態の next キー %d シフト状態の options キー %e シフト状態の previous キー %f シフト状態の print キー %g シフト状態の redo キー %h シフト状態の replace キー %i シフト状態の右カーソルキー %j シフト状態の resume キー &0 シフト状態の cancel キー &1 reference キー &2 refresh キー &3 replace キー &4 restart キー &5 resume キー &6 save キー &7 suspend キー &8 undo キー &9 シフト状態の begin キー *0 シフト状態の find キー *1 シフト状態の command キー *2 シフト状態の copy キー *3 シフト状態の create キー *4 シフト状態の delete キー *5 シフト状態の delete line キー *6 select キー *7 シフト状態の end キー *8 シフト状態の clear line キー *9 シフト状態の exit キー @0 find キー @1 begin キー @2 cancel キー @3 close キー @4 command キー @5 copy キー @6 create キー @7 end キー @8 enter/send キー @9 exit キー al 1 行挿入する AL %1 行挿入する ac 図形文字のペアの集合。代替文字セットにマップするためのもの ae 代替文字セットの終り as 図形文字集合に対する、代替文字セットの開始 bc ^H がバックスペースでない場合のバックスペース bl (音声の) ベルを鳴らす bt 前のタブストップへ移動 cb 行頭からカーソル位置までのクリア cc ダミーコマンド文字 cd 画面の最後までをクリア ce 行の最後までをクリア ch カーソルを水平方向にだけ移動し、 %1 桁の位置にする cl 画面を消去し、カーソルをホームポジションへ cm 画面上の %1 行、 %2 桁へカーソルを移動 CM メモリ上の %1 行、 %2 桁へカーソルを移動 cr 復帰 cs %1 行目から %2 行目までの範囲をスクロールする ct タブの消去 cv カーソルを垂直方向にだけ移動し、 %1 行の位置にする dc 一文字削除する DC %1 文字削除する dl 一行削除する DL %1 行削除する dm delete モード開始 do カーソルを一行下げる DO カーソルを #1 行下げる ds ステータス行を無効にする eA 代替文字集合を有効にする ec カーソル位置から %1 文字消去する ed delete モード終了 ei intert モード終了 ff ハードコピー端末での頁送り文字 fs ステータス行に移動する前の位置へ復帰する文字 F1 ファンクションキー f11 が送出する文字列 F2 ファンクションキー f12 が送出する文字列 F3 ファンクションキー f13 が送出する文字列 ... ... F9 ファンクションキー f19 が送出する文字列 FA ファンクションキー f20 が送出する文字列 FB ファンクションキー f21 が送出する文字列 ... ... FZ ファンクションキー f45 が送出する文字列 Fa ファンクションキー f46 が送出する文字列 Fb ファンクションキー f47 が送出する文字列 ... ... Fr ファンクションキー f63 が送出する文字列 hd カーソルを一行の半分だけ下に移動 ho カーソルをホームポジションに移動 hu カーソルを一行の半分だけ上に移動 i1 ログイン時の初期化文字列 1 i3 ログイン時の初期化文字列 3 is ログイン時の初期化文字列 2 ic 一文字挿入 IC %1 文字挿入 if 初期化ファイル im insert モード開始 ip 挿入後のパディングに必要な時間と特殊文字 iP 初期化プログラム K1 キーパッドの左上キー K2 キーパッドの中央キー K3 キーパッドの右上キー K4 キーパッドの左下キー K5 キーパッドの右下キー k0 ファンクションキー 0 k1 ファンクションキー 1 k2 ファンクションキー 2 k3 ファンクションキー 3 k4 ファンクションキー 4 k5 ファンクションキー 5 k6 ファンクションキー 6 k7 ファンクションキー 7 k8 ファンクションキー 8 k9 ファンクションキー 9 k; ファンクションキー 10 ka clea all tabs キー kA insert line キー kb バックスペースキー kB back tab キー kC clear screen キー kd 下カーソルキー kD カーソル位置の文字を消すキー ke キーパッドをオフにする kE 行末までをクリアするキー kF 前方向/下方向へスクロールするキー kh home キー kH cursor hown down キー kI 文字挿入キー/insert モードキー kl 左カーソルキー kL 行を削除するキー kM insert モードを終了するキー kN 次のページへ移動するキー kP 前のページへ移動するキー kr 右カーソルキー kR 後ろ方向/上方向にスクロールするキー ke キーパッドをオンにする kS 画面最後までをクリアするキー kt タブクリアキー kT タブストップ設定キー ku 上カーソルキー l0 0 番目のファンクションキーのラベル (f0 でない場合) l1 1 番目のファンクションキーのラベル (f1 でない場合) l2 2 番目のファンクションキーのラベル (f2 でない場合) ... ... la 10 番目のファンクションキーのラベル (f10 でない場合) le カーソルを左へ一文字分移動する ll カーソルを左下隅に移動する LE カーソルを左 %1 文字分移動する LF ソフトラベルをオフにする LO ソフトラベルをオンにする mb 点滅開始 MC ソフトマージンをクリア md bold モード開始 me so, us, mb, md, mr などのモード全てを終了する mh 半輝度モード開始 mk ダークモード (文字は見えなくなる) ML 左側のソフトマージンを設定 mm 端末をメタモードに設定する mo 端末をメタモードでなくする mp 属性保護モードをオンにする mr 反転モード開始 MR 右端のソフトマージンを設定 nd カーソルを右に一文字分移動 nw 復帰コマンド pc パディング文字 pf プリンタをオフにする pk ユーザが入力したときに文字列 %2 を送出するプログラムキー %1 pl ローカルモードで文字列 %2 を実行するプログラムキー %1 pn 文字列 %2 を表示するためのプログラムソフトラベル %1 po プリンタをオンにする pO %1 (<256) バイトの間プリンタをオンにする ps 画面上の内容をプリンタに印刷する px 文字列 %2 をコンピュータに送出するプログラムキー %1 r1 端末を正常なモードに設定するリセット文字列 1 r2 端末を正常なモードに設定するリセット文字列 2 r3 端末を正常なモードに設定するリセット文字列 3 RA 自動折り返しを無効にする rc 保存しておいたカーソル位置に復帰する rf リセット文字列の入ったファイル名 RF 端末からの入力要求 RI カーソルを右へ %1 文字分移動する rp 文字 %1 を %2 回分繰り返す rP 置換モードにおいて、文字を送出した後に行うパディング rs リセット文字列 RX XON/XOFF フロー制御をオフにする sa 属性 %1 %2 %3 %4 %5 %6 %7 %8 %9 を設定 SA 自動折り返しを有効にする sc カーソル位置を保存する se 強調モード終了 sf 順方向の 1 行スクロール SF 順方向の %1 行スクロール so 強調モード開始 sr 逆スクロール SR %1 行分逆スクロールする st 全ての行において、現在の桁位置をタブストップに設定する SX XON/XOFF フロー制御をオンにする ta 次のハードウェアタブ位置へ移動 tc 他のエントリから端末の説明を読む込む te カーソル移動を用いるプログラムの終了 ti カーソル移動を用いるプログラムの開始 ts ステータス行のカーソルを %1 桁へ移動 uc カーソル位置の文字に下線をつけ、右にカーソルを移動 ue 下線モード終了 up カーソルを 1 行分上に移動 UP カーソルを %1 行分上に移動 us 下線モード開始 vb ビジュアルベル ve カーソルを通常の明るさにする vi カーソルを見えなくする vs 強調カーソル wi ウィンドウ領域を %1〜%2 行、%3〜%4 桁に設定 XF XOFF 制御文字 (^S でない場合) 文字列機能の制御コードを定義するには、いくつかの方法がある。 '^', '\', '%' を除く全ての通常の文字は、それ自身を表す。 ^x は Control-x を意味する。 Control-A は 10 進数の 1 に等しい。 \x は特殊コードとして扱われる。x には以下の文字のどれかが入る。 E エスケープ (27) n ラインフィード (10) r 復帰 (13) t タブ (9) b バックスペース (8) f 頁送り (12) 0 ヌルキャラクタ。’\xxx’ は 8 進数 xxx の文字を表す。 i パラメータを 1 増加させる。 r 一つのパラメータをとる機能 + 次の文字の値をパラメータに追加し、バイナリで出力する 2 パラメータを 2 桁の数字として ASCII 出力する (printf の %2d と同 じ意味) d パラメータを数字として ASCII 出力する (printf の %d と同じ意味) % '%' を表示する バ イナリ出力を行う場合、文字列を終端されないようにヌル文字を避けねばな らない。タブ文字をパラメータのバイナリ出力とする場合は、タブ文字の展 開 をリセットしなければならない。 注意: 上記のような、パラメータとしてのメタ文字は正しくないかもしれない 。このことは、Minixの termcap と Linux の termcap との間に互換性 がないことに繋がっている。 図形文字は 3 つの文字列機能で指定できる。 as 代替文字セットの開始 ae 代替文字セットの終了 ac 文 字列のペアの集合を指定する。最初の文字は図形文字の名称で、 2 番目の文字はその定義である。 名称には以下のものがある。 + 右矢印 (>) , 左矢印 (<) . 下矢印 (v) 0 なかを塗りつぶした四角 (#) I ランタン記号 (#) (訳注 原文は latern だったが、これは lantern の typo と思われる) - 上矢印 (^) ’ 菱形 (+) a チェス板 (:) f 角度 (’) g プラスマイナス (#) h 四角 (#) j 右下隅 (+) k 右上隅 (+) l 左上隅 (+) m 左下隅 (+) n 十字 (+) o 上水平線 (-) q 中水平線 (-) s 下水平線 (_) t 左 T 字 (+) u 右 T 字 (+) v 下 T 字 (+) w 正 T 字 (+) x 垂直線 (|) ~ 段落 (???) 括弧内の値は、指定した機能が存在しない場合に用いられるデフォルトの値 で ある。 関連項目 ncurses(3), termcap(3), terminfo(5) 校正者記 訳出にあたっては "termcap & terminfo" (Strang, Mui, O’reilly 共著, 鈴木 麗 監訳, アスキー出版局 1992) を参考にした。ただし本日本語マニュアル に おける誤りは校正者の責任である。 Linux 1996-10-21 TERMCAP(5)
TERMCAP(5) Linux Programmer’s Manual TERMCAP(5) NAME termcap - terminal capability database DESCRIPTION The termcap database is an obsolete facility for describing the capa- bilities of character-cell terminals and printers. It is retained only for capability with old programs; new ones should use the terminfo(5) database and associated libraries. /etc/termcap is an ASCII file (the database master) that lists the capabilities of many different types of terminals. Programs can read termcap to find the particular escape codes needed to control the visual attributes of the terminal actually in use. (Other aspects of the terminal are handled by stty(1).) The termcap database is indexed on the TERM environment variable. Termcap entries must be defined on a single logical line, with '\' used to suppress the newline. Fields are separated by ':'. The first field of each entry starts at the left-hand margin, and contains a list of names for the terminal, separated by '|'. The first subfield may (in BSD termcap entries from versions 4.3 and prior) contain a short name consisting of two characters. This short name may consist of capital or small letters. In 4.4BSD termcap entries this field is omitted. The second subfield (first, in the newer 4.4BSD format) contains the name used by the environment variable TERM. It should be spelled in lowercase letters. Selectable hardware capabilities should be marked by appending a hyphen and a suffix to this name. See below for an example. Usual suffixes are w (more than 80 characters wide), am (automatic margins), nam (no automatic margins), and rv (reverse video display). The third subfield contains a long and descriptive name for this termcap entry. Subsequent fields contain the terminal capabilities; any continued capability lines must be indented one tab from the left margin. Although there is no defined order, it is suggested to write first boolean, then numeric, and then string capabilities, each sorted alpha- betically without looking at lower or upper spelling. Capabilities of similar functions can be written in one line. Example for: Head line: vt|vt101|DEC VT 101 terminal in 80 character mode:\ Head line: Vt|vt101-w|DEC VT 101 terminal in (wide) 132 character mode:\ Boolean: :bs:\ Numeric: :co#80:\ String: :sr=\E[H:\ Boolean Capabilities 5i Printer will not echo on screen am Automatic margins which means automatic line wrap bs Control-H (8 dec.) performs a backspace bw Backspace on left margin wraps to previous line and right margin da Display retained above screen db Display retained below screen eo A space erases all characters at cursor position es Escape sequences and special characters work in status line gn Generic device hc This is a hardcopy terminal HC The cursor is hard to see when not on bottom line hs Has a status line hz Hazeltine bug, the terminal can not print tilde characters in Terminal inserts null bytes, not spaces, to fill whitespace km Terminal has a meta key mi Cursor movement works in insert mode ms Cursor movement works in standout/underline mode NP No pad character NR ti does not reverse te nx No padding, must use XON/XOFF os Terminal can overstrike ul Terminal underlines although it can not overstrike xb Beehive glitch, f1 sends ESCAPE, f2 sends ^C xn Newline/wraparound glitch xo Terminal uses xon/xoff protocol xs Text typed over standout text will be displayed in standout xt Teleray glitch, destructive tabs and odd standout mode Numeric Capabilities co Number of columns dB Delay in milliseconds for backspace on hardcopy terminals dC Delay in milliseconds for carriage return on hardcopy terminals dF Delay in milliseconds for form feed on hardcopy terminals dN Delay in milliseconds for new line on hardcopy terminals dT Delay in milliseconds for tabulator stop on hardcopy terminals dV Delay in milliseconds for vertical tabulator stop on hardcopy terminals it Difference between tab positions lh Height of soft labels lm Lines of memory lw Width of soft labels li Number of lines Nl Number of soft labels pb Lowest baud rate which needs padding sg Standout glitch ug Underline glitch vt virtual terminal number ws Width of status line if different from screen width String Capabilities !1 shifted save key !2 shifted suspend key !3 shifted undo key #1 shifted help key #2 shifted home key #3 shifted input key #4 shifted cursor left key %0 redo key %1 help key %2 mark key %3 message key %4 move key %5 next-object key %6 open key %7 options key %8 previous-object key %9 print key %a shifted message key %b shifted move key %c shifted next key %d shifted options key %e shifted previous key %f shifted print key %g shifted redo key %h shifted replace key %i shifted cursor right key %j shifted resume key &0 shifted cancel key &1 reference key &2 refresh key &3 replace key &4 restart key &5 resume key &6 save key &7 suspend key &8 undo key &9 shifted begin key *0 shifted find key *1 shifted command key *2 shifted copy key *3 shifted create key *4 shifted delete character *5 shifted delete line *6 select key *7 shifted end key *8 shifted clear line key *9 shifted exit key @0 find key @1 begin key @2 cancel key @3 close key @4 command key @5 copy key @6 create key @7 end key @8 enter/send key @9 exit key al Insert one line AL Insert %1 lines ac Pairs of block graphic characters to map alternate character set ae End alternative character set as Start alternative character set for block graphic characters bc Backspace, if not ^H bl Audio bell bt Move to previous tab stop cb Clear from beginning of line to cursor cc Dummy command character cd Clear to end of screen ce Clear to end of line ch Move cursor horizontally only to column %1 cl Clear screen and cursor home cm Cursor move to row %1 and column %2 (on screen) CM Move cursor to row %1 and column %2 (in memory) cr Carriage return cs Scroll region from line %1 to %2 ct Clear tabs cv Move cursor vertically only to line %1 dc Delete one character DC Delete %1 characters dl Delete one line DL Delete %1 lines dm Begin delete mode do Cursor down one line DO Cursor down #1 lines ds Disable status line eA Enable alternate character set ec Erase %1 characters starting at cursor ed End delete mode ei End insert mode ff Formfeed character on hardcopy terminals fs Return character to its position before going to status line F1 The string sent by function key f11 F2 The string sent by function key f12 F3 The string sent by function key f13 ... ... F9 The string sent by function key f19 FA The string sent by function key f20 FB The string sent by function key f21 ... ... FZ The string sent by function key f45 Fa The string sent by function key f46 Fb The string sent by function key f47 ... ... Fr The string sent by function key f63 hd Move cursor a half line down ho Cursor home hu Move cursor a half line up i1 Initialization string 1 at login i3 Initialization string 3 at login is Initialization string 2 at login ic Insert one character IC Insert %1 characters if Initialization file im Begin insert mode ip Insert pad time and needed special characters after insert iP Initialization program K1 upper left key on keypad K2 center key on keypad K3 upper right key on keypad K4 bottom left key on keypad K5 bottom right key on keypad k0 Function key 0 k1 Function key 1 k2 Function key 2 k3 Function key 3 k4 Function key 4 k5 Function key 5 k6 Function key 6 k7 Function key 7 k8 Function key 8 k9 Function key 9 k; Function key 10 ka Clear all tabs key kA Insert line key kb Backspace key kB Back tab stop kC Clear screen key kd Cursor down key kD Key for delete character under cursor ke turn keypad off kE Key for clear to end of line kF Key for scrolling forward/down kh Cursor home key kH Cursor hown down key kI Insert character/Insert mode key kl Cursor left key kL Key for delete line kM Key for exit insert mode kN Key for next page kP Key for previous page kr Cursor right key kR Key for scrolling backward/up ks Turn keypad on kS Clear to end of screen key kt Clear this tab key kT Set tab here key ku Cursor up key l0 Label of zeroth function key, if not f0 l1 Label of first function key, if not f1 l2 Label of first function key, if not f2 ... ... la Label of tenth function key, if not f10 le Cursor left one character ll Move cursor to lower left corner LE Cursor left %1 characters LF Turn soft labels off LO Turn soft labels on mb Start blinking MC Clear soft margins md Start bold mode me End all mode like so, us, mb, md and mr mh Start half bright mode mk Dark mode (Characters invisible) ML Set left soft margin mm Put terminal in meta mode mo Put terminal out of meta mode mp Turn on protected attribute mr Start reverse mode MR Set right soft margin nd Cursor right one character nw Carriage return command pc Padding character pf Turn printer off pk Program key %1 to send string %2 as if typed by user pl Program key %1 to execute string %2 in local mode pn Program soft label %1 to show string %2 po Turn the printer on pO Turn the printer on for %1 (<256) bytes ps Print screen contents on printer px Program key %1 to send string %2 to computer r1 Reset string 1 to set terminal to sane modes r2 Reset string 2 to set terminal to sane modes r3 Reset string 3 to set terminal to sane modes RA disable automatic margins rc Restore saved cursor position rf Reset string filename RF Request for input from terminal RI Cursor right %1 characters rp Repeat character %1 for %2 times rP Padding after character sent in replace mode rs Reset string RX Turn off XON/XOFF flow control sa Set %1 %2 %3 %4 %5 %6 %7 %8 %9 attributes SA enable automatic margins sc Save cursor position se End standout mode sf Normal scroll one line SF Normal scroll %1 lines so Start standout mode sr Reverse scroll SR scroll back %1 lines st Set tabulator stop in all rows at current column SX Turn on XON/XOFF flow control ta move to next hardware tab tc Read in terminal description from another entry te End program that uses cursor motion ti Begin program that uses cursor motion ts Move cursor to column %1 of status line uc Underline character under cursor and move cursor right ue End underlining up Cursor up one line UP Cursor up %1 lines us Start underlining vb Visible bell ve Normal cursor visible vi Cursor invisible vs Standout cursor wi Set window from line %1 to %2 and column %3 to %4 XF XOFF character if not ^S There are several ways of defining the control codes for string capa- bilities: Every normal character represents itself, except '^', '\', and '%'. A ^x means Control-x. Control-A equals 1 decimal. \x means a special code. x can be one of the following characters: E Escape (27) n Linefeed (10) r Carriage return (13) t Tabulation (9) b Backspace (8) f Form feed (12) 0 Null character. A \xxx specifies the octal character xxx. i Increments parameters by one. r Single parameter capability + Add value of next character to this parameter and do binary out- put 2 Do ASCII output of this parameter with a field with of 2 d Do ASCII output of this parameter with a field with of 3 % Print a '%' If you use binary output, then you should avoid the null character because it terminates the string. You should reset tabulator expansion if a tabulator can be the binary output of a parameter. Warning: The above metacharacters for parameters may be wrong, they docu- ment Minix termcap which may not be compatible with Linux term- cap. The block graphic characters can be specified by three string capabili- ties: as start the alternative charset ae end it ac pairs of characters. The first character is the name of the block graphic symbol and the second characters is its defini- tion. The following names are available: + right arrow (>) , left arrow (<) . down arrow (v) 0 full square (#) I lantern (#) - upper arrow (^) ’ rhombus (+) a chess board (:) f degree (’) g plus-minus (#) h square (#) j right bottom corner (+) k right upper corner (+) l left upper corner (+) m left bottom corner (+) n cross (+) o upper horizontal line (-) q middle horizontal line (-) s bottom horizontal line (_) t left tee (+) u right tee (+) v bottom tee (+) w normal tee (+) x vertical line (|) ~ paragraph (???) The values in parentheses are suggested defaults which are used by curses, if the capabilities are missing. SEE ALSO ncurses(3), termcap(3), terminfo(5) COLOPHON This page is part of release 3.22 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 1996-10-21 TERMCAP(5)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa