.\" $NetBSD: ul.1,v 1.4 1996/11/12 08:00:07 mikel Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)ul.1 8.1 (Berkeley) 6/6/93 .\" .\" Translated Tue Nov 12 JST 1996 by NetBSD jman proj. .\" Updated Wed Apr 5 JST 2000 by Kentaro Shirakata .Dd June 6, 1993 .Dt UL 1 .Os BSD 4 .Sh 名称 .Nm ul .Nd 入力中のアンダーライン生成コードを端末のシーケンスに変換する .Sh 書式 .Nm ul .Op Fl i .Op Fl t Ar terminal .Op Ar name Ar ... .Sh 解説 .Nm ul は、 指定されたファイル (指定されていなければ標準入力) を読み、 アンダーラインを表示すべき部分を、環境変数 .Ev TERM で定義されている端末にあわせてアンダーラインを表示するシーケンスに変換する。 アンダーラインのシーケンスを決定するために、 .Pa terminfo データベースが読み込まれる。 端末がアンダーライン機能を持たず、強調表示機能を持っている場合には、 強調表示を代わりに使用する。もし端末が二重印字できるか、端末自体に アンダーラインを扱う機能があるならば、 .Nm ul は .Xr cat 1 と同じになる。 端末がアンダーラインを扱えない場合は、アンダーラインは無視される。 .Pp 以下のオプションが利用可能である: .Bl -tag -width Ds .It Fl i アンダーラインのかわりに、次の行の当該位置にダッシュ `\-' を表示する。 これは、CRT 端末上で .Xr nroff 出力のアンダーラインを見たいときに有効である。 .It Fl t Ar terminal 端末タイプを、環境変数で指定されたものの代わりに .Ar terminal にする。 .El .Sh 環境変数 以下の環境変数が利用される: .Bl -tag -width TERM .It Ev TERM 変数は、tty デバイスに対応する、デバイスの端末能力記述 .Ns ( Xr terminfo 5 を参照すること) を得るために利用される。 .Ev TERM は、ログイン時に、 .Pa /etc/ttys に指定されたデフォルト端末タイプに設定されるか、 ログイン処理中に、 ユーザによって、そのユーザの .Pa login ファイルのなかで設定される .Ns ( Xr setenv 1 を参照すること)。 .Sh 関連項目 .Xr man 1 , .Xr nroff 1 , .Xr colcrt 1 .Sh バグ .Xr nroff は、通常、テキストにアンダーラインを入れるためにバックスペースと アンダーライン文字を連続して出力する。 .Nm ul は、このカーソルの逆方向への移動の最適化までは行わない。 .Sh 歴史 .Nm コマンドは .Bx 3.0 から登場した。