.\" $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 .\"O .Sh NAME .Sh 名称 .Nm ul .\"O .Nd do underlining .Nd 入力中のアンダーライン生成コードを端末のシーケンスに変換する .\"O .Sh SYNOPSIS .Sh 書式 .Nm ul .Op Fl i .Op Fl t Ar terminal .Op Ar name Ar ... .\"O .Sh DESCRIPTION .Sh 解説 .\"O .Nm Ul .\"O reads the named files (or standard input if none are given) .\"O and translates occurrences of underscores to the sequence .\"O which indicates underlining for the terminal in use, as specified .\"O by the environment variable .\"O .Ev TERM . .Nm ul は、 指定されたファイル (指定されていなければ標準入力) を読み、 アンダーラインを表示すべき部分を、環境変数 .Ev TERM で定義されている端末にあわせてアンダーラインを表示するシーケンスに変換する。 .\"O The .\"O .Pa terminfo .\"O database is read to determine the appropriate sequences for underlining. アンダーラインのシーケンスを決定するために、 .Pa terminfo データベースが読み込まれる。 .\"O If the terminal is incapable of underlining, but is capable of .\"O a standout mode then that is used instead. .\"O If the terminal can overstrike, .\"O or handles underlining automatically, .\"O .Nm ul .\"O degenerates to .\"O .Xr cat 1 . 端末がアンダーライン機能を持たず、強調表示機能を持っている場合には、 強調表示を代わりに使用する。もし端末が二重印字できるか、端末自体に アンダーラインを扱う機能があるならば、 .Nm ul は .Xr cat 1 と同じになる。 .\"O If the terminal cannot underline, underlining is ignored. 端末がアンダーラインを扱えない場合は、アンダーラインは無視される。 .Pp .\"O The following options are available: 以下のオプションが利用可能である: .Bl -tag -width Ds .It Fl i .\"O .It Fl i .\"O Underlining is indicated by a separate line containing appropriate .\"O dashes `\-'; this is useful when you want to look at the underlining .\"O which is present in an .\"O .Xr nroff .\"O output stream on a crt-terminal. アンダーラインのかわりに、次の行の当該位置にダッシュ `\-' を表示する。 これは、CRT 端末上で .Xr nroff 出力のアンダーラインを見たいときに有効である。 .It Fl t Ar terminal .\"O Overrides the terminal type specified in the environment with .\"O .Ar terminal . 端末タイプを、環境変数で指定されたものの代わりに .Ar terminal にする。 .El .\"O .Sh ENVIRONMENT .Sh 環境変数 .\"O The following environment variable is used: 以下の環境変数が利用される: .Bl -tag -width TERM .\"O The .\"O .Ev TERM .\"O variable is used to relate a tty device .\"O with its device capability description (see .\"O .Xr terminfo 5 ) . .It Ev TERM 変数は、tty デバイスに対応する、デバイスの端末能力記述 .Ns ( Xr terminfo 5 を参照すること) を得るために利用される。 .\"O .Ev TERM .\"O is set at login time, either by the default terminal type .\"O specified in .\"O .Pa /etc/ttys .\"O or as set during the login process by the user in their .\"O .Pa login .\"O file (see .\"O .Xr setenv 1 ) . .Ev TERM は、ログイン時に、 .Pa /etc/ttys に指定されたデフォルト端末タイプに設定されるか、 ログイン処理中に、 ユーザによって、そのユーザの .Pa login ファイルのなかで設定される .Ns ( Xr setenv 1 を参照すること)。 .\"O .Sh SEE ALSO .Sh 関連項目 .Xr man 1 , .Xr nroff 1 , .Xr colcrt 1 .\"O .Sh BUGS .Sh バグ .\"O .Xr Nroff .\"O usually outputs a series of backspaces and underlines intermixed .\"O with the text to indicate underlining. No attempt is made to optimize .\"O the backward motion. .Xr nroff は、通常、テキストにアンダーラインを入れるためにバックスペースと アンダーライン文字を連続して出力する。 .Nm ul は、このカーソルの逆方向への移動の最適化までは行わない。 .\"O .Sh HISTORY .Sh 歴史 .\"O The .\"O .Nm .\"O command appeared in .\"O .Bx 3.0 . .Nm コマンドは .Bx 3.0 から登場した。