== SYNOPSIS
-/etc/terminal-colors.d/_[[name][@term].][type]_
+*/etc/terminal-colors.d/*++[++_name_**.**|++[++_name_]**@**_term_**.**]_type_
== DESCRIPTION
The _term_ is a terminal identifier (the *TERM* environment variable). The terminal identifier is optional and when none is specified then the file is used for all unspecified terminals.
The _type_ is a file type. Supported file types are:
-
+____
*disable*::
Turns off output colorization for all compatible utilities. See also the NO_COLOR environment variable below.
*enable*::
Turns on output colorization; any matching *disable* files are ignored.
-
*scheme*::
Specifies colors used for output. The file format may be specific to the utility, the default format is described below.
+____
If there are more files that match for a utility, then the file with the more specific filename wins. For example, the filename "@xterm.scheme" has less priority than "dmesg@xterm.scheme". The lowest priority are those files without a utility name and terminal identifier (e.g., "disable").
The names are specific to the utilities. For more details always see
the *COLORS* section in the man page for the utility.
-The _color-sequence_ is a color name, ASCII color sequences, or escape sequences.
+The _color-sequence_ can be a color name, an ANSI color sequence, or an escape sequence.
=== Color names
-black, blink, blue, bold, brown, cyan, darkgray, gray, green, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta, lightred, magenta, red, reset, reverse, and yellow.
+Valid color names are: black, blink, blue, bold, brown, cyan, darkgray, gray, green, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta, lightred, magenta, red, reset, reverse, and yellow.
=== ANSI color sequences
-The color sequences are composed of sequences of numbers separated by semicolons. The most common codes are:
+An ANSI color sequence is composed of sequences of numbers separated by semicolons. The most common codes are:
____
0 to restore default color
1 for brighter colors
=== Escape sequences
-An escape sequence is necessary to enter a space, backslash, caret, or any
+An escape sequence is needed to enter a space, backslash, caret, or any
control character anywhere in a string, as well as a hash mark as the first
character. These C-style backslash-escapes can be used:
_/etc/terminal-colors.d_
-== EXAMPLE
+== EXAMPLES
Disable colors for all compatible utilities:
-
____
*touch /etc/terminal-colors.d/disable*
____
Disable colors for all compatible utils on a vt100 terminal:
-
____
*touch /etc/terminal-colors.d/@vt100.disable*
____
Disable colors for all compatible utils except *dmesg*(1):
-
____
-*touch /etc/terminal-colors.d/disable*
-
+*touch /etc/terminal-colors.d/disable* +
*touch /etc/terminal-colors.d/dmesg.enable*
____
== COMPATIBILITY
-The *terminal-colors.d* functionality is currently supported by all util-linux utilities which provides colorized output. For more details always see the *COLORS* section in the man page for the utility.
+The *terminal-colors.d* functionality is currently supported by all util-linux utilities which provide colorized output. For more details always see the *COLORS* section in the man page for the utility.
include::man-common/bugreports.adoc[]