41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
\section set_color set_color - set the terminal color
|
|
|
|
\subsection set_color-synopsis Synopsis
|
|
<tt>set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]</tt>
|
|
|
|
\subsection set_color-description Description
|
|
|
|
Change the foreground and/or background color of the terminal.
|
|
COLOR is one of black, red, green, brown, yellow, blue, magenta,
|
|
purple, cyan, white and normal.
|
|
|
|
If your terminal supports term256 (modern xterms and OS X Lion),
|
|
you can specify an RGB value with three or six hex digits, such
|
|
as A0FF33 or f2f. fish will choose the closest supported color.
|
|
|
|
- \c -b, \c --background Set the background color
|
|
- \c -c, \c --print-colors Prints a list of all valid color names
|
|
- \c -h, \c --help Display help message and exit
|
|
- \c -o, \c --bold Set bold or extra bright mode
|
|
- \c -u, \c --underline Set underlined mode
|
|
- \c -v, \c --version Display version and exit
|
|
|
|
|
|
Calling <tt>set_color normal</tt> will set the terminal color to
|
|
whatever is the default color of the terminal.
|
|
|
|
Some terminals use the --bold escape sequence to switch to a brighter
|
|
color set. On such terminals, <code>set_color white</code> will result
|
|
in a grey font color, while <code>set_color --bold white</code> will
|
|
result in a white font color.
|
|
|
|
Not all terminal emulators support all these features. This is not a
|
|
bug in set_color but a missing feature in the terminal emulator.
|
|
|
|
set_color uses the terminfo database to look up how to change terminal
|
|
colors on whatever terminal is in use. Some systems have old and
|
|
incomplete terminfo databases, and may lack color information for
|
|
terminals that support it. Download and install the latest version of
|
|
ncurses and recompile fish against it in order to fix this issue.
|
|
|