--color=when’ option specifies under which conditions
colorized output should be generated. The
when part can be one of
msgcatprogram. It is explained in the next section (The TERM variable).
--color’ is equivalent to ‘
--color=yes’. The default is
Thus, a command like ‘
msgcat vi.po’ will produce colorized output
when called by itself in a command window. Whereas in a pipe, such as
msgcat vi.po | less -R’, it will not produce colorized output. To
get colorized output in this situation nevertheless, use the command
msgcat --color vi.po | less -R’.
--color=html’ option will produce output that can be viewed in
a browser. This can be useful, for example, for Indic languages,
because the renderic of Indic scripts in browsers is usually better than
in terminal emulators.
Note that the output produced with the
--color option is not
a valid PO file in itself. It contains additional terminal-specific escape
sequences or HTML tags. A PO file reader will give a syntax error when
confronted with such content. Except for the ‘
you therefore normally don’t need to save output produced with the
--color option in a file.