mdoc version three/bsd copyright
[unix-history] / usr / src / usr.bin / ul / ul.1
CommitLineData
d86dff27
KB
1.\" Copyright (c) 1980, 1991 Regents of the University of California.
2.\" All rights reserved.
63de062d 3.\"
d86dff27 4.\" %sccs.include.redist.man%
63de062d 5.\"
d86dff27
KB
6.\" @(#)ul.1 6.3 (Berkeley) %G%
7.\"
8.Dd
9.Dt UL 1
10.Os BSD 4
11.Sh NAME
12.Nm ul
13.Nd do underlining
14.Sh SYNOPSIS
15.Nm ul
16.Op Fl i
17.Op Fl t Ar terminal
18.Op Ar name Ar ...
19.Sh DESCRIPTION
20.Nm Ul
63de062d 21reads the named files (or standard input if none are given)
a7faa3f9 22and translates occurrences of underscores to the sequence
63de062d
KM
23which indicates underlining for the terminal in use, as specified
24by the environment variable
d86dff27 25.Ev TERM .
63de062d 26The file
d86dff27 27.Pa /etc/termcap
63de062d
KM
28is read to determine the appropriate sequences for underlining.
29If the terminal is incapable of underlining, but is capable of
30a standout mode then that is used instead.
31If the terminal can overstrike,
32or handles underlining automatically,
d86dff27 33.Nm ul
63de062d 34degenerates to
d86dff27 35.Xr cat 1 .
63de062d 36If the terminal cannot underline, underlining is ignored.
d86dff27
KB
37.Pp
38The following options are available:
39.Bl -tag -width Ds
40.It Fl i
41Underlining is indicated by a separate line containing appropriate
63de062d
KM
42dashes `\-'; this is useful when you want to look at the underlining
43which is present in an
d86dff27 44.Xr nroff
63de062d 45output stream on a crt-terminal.
d86dff27
KB
46.It Fl t Ar terminal
47Overrides the terminal type specified in the environment with
48.Ar terminal .
49.El
50.Sh ENVIRONMENT
51The following environment variable is used:
52.Bl -tag -width TERM
53.It Ev TERM
54The
55.Ev TERM
56variable is used to relate a tty device
57with its device capability description (see
58.Xr termcap 5 ) .
59.Ev TERM
60is set at login time, either by the default terminal type
61specified in
62.Pa /etc/ttys
63or as set during the login process by the user in their
64.Pa login
65file (see
66.Xr setenv 1 ) .
67.El
68.Sh SEE ALSO
69.Xr man 1 ,
70.Xr nroff 1 ,
71.Xr colcrt 1
72.Sh BUGS
73.Xr Nroff
63de062d
KM
74usually outputs a series of backspaces and underlines intermixed
75with the text to indicate underlining. No attempt is made to optimize
76the backward motion.
d86dff27
KB
77.Sh HISTORY
78The
79.Nm
80command appeared in
81.Bx 3.0 .