Commit | Line | Data |
---|---|---|
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 | 21 | reads the named files (or standard input if none are given) |
a7faa3f9 | 22 | and translates occurrences of underscores to the sequence |
63de062d KM |
23 | which indicates underlining for the terminal in use, as specified |
24 | by the environment variable | |
d86dff27 | 25 | .Ev TERM . |
63de062d | 26 | The file |
d86dff27 | 27 | .Pa /etc/termcap |
63de062d KM |
28 | is read to determine the appropriate sequences for underlining. |
29 | If the terminal is incapable of underlining, but is capable of | |
30 | a standout mode then that is used instead. | |
31 | If the terminal can overstrike, | |
32 | or handles underlining automatically, | |
d86dff27 | 33 | .Nm ul |
63de062d | 34 | degenerates to |
d86dff27 | 35 | .Xr cat 1 . |
63de062d | 36 | If the terminal cannot underline, underlining is ignored. |
d86dff27 KB |
37 | .Pp |
38 | The following options are available: | |
39 | .Bl -tag -width Ds | |
40 | .It Fl i | |
41 | Underlining is indicated by a separate line containing appropriate | |
63de062d KM |
42 | dashes `\-'; this is useful when you want to look at the underlining |
43 | which is present in an | |
d86dff27 | 44 | .Xr nroff |
63de062d | 45 | output stream on a crt-terminal. |
d86dff27 KB |
46 | .It Fl t Ar terminal |
47 | Overrides the terminal type specified in the environment with | |
48 | .Ar terminal . | |
49 | .El | |
50 | .Sh ENVIRONMENT | |
51 | The following environment variable is used: | |
52 | .Bl -tag -width TERM | |
53 | .It Ev TERM | |
54 | The | |
55 | .Ev TERM | |
56 | variable is used to relate a tty device | |
57 | with its device capability description (see | |
58 | .Xr termcap 5 ) . | |
59 | .Ev TERM | |
60 | is set at login time, either by the default terminal type | |
61 | specified in | |
62 | .Pa /etc/ttys | |
63 | or as set during the login process by the user in their | |
64 | .Pa login | |
65 | file (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 |
74 | usually outputs a series of backspaces and underlines intermixed |
75 | with the text to indicate underlining. No attempt is made to optimize | |
76 | the backward motion. | |
d86dff27 KB |
77 | .Sh HISTORY |
78 | The | |
79 | .Nm | |
80 | command appeared in | |
81 | .Bx 3.0 . |