Ul

From LQWiki
Jump to navigation Jump to search

ul translates underscoring and tabs in its input into the sequence appropriate for a terminal, either the one indicated by the environment variable TERM or the one given with the -t option. The result may be to render the underlining, or to render standout, or ignore underlining depending on the terminal's capabilities indicated in /etc/termcap.

Options

  • -t terminal use the capabilities of terminal rather than the one indicated in the environment.
  • -i render underlines as dashes in a separate line. Useful for investigation of nroff output, or when using a terminal incapable of underlining or standout.

Environment

The command is affected by environment variables LANG, LC_ALL, LC_CTYPE and TERM as described in the environ(7) man page.

Provided by

Most (all?) Linux distributions incorporate this from the [util-linux] project

See also