GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SET_COLOR (1)

NAME

set_color -- set the terminal color

    Synopsis

set_color [OPTIONS] [COLOR]

    Description

set_color changes 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.

The following options are available:

o -b, --background COLOR sets the background color.
o -c, --print-colors prints a list of all valid color names.
o -o, --bold sets bold or extra bright mode.
o -u, --underline sets underlined mode.

Calling set_color normal will set the terminal color to the default color of the terminal.

Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color.

Not all terminal emulators support all these features.

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.

    Examples

set_color red; echo ’Roses are red’ set_color blue; echo ’Violets are blue’ set_color 62A; echo ’Eggplants are dark purple’ set_color normal; echo ’Normal is nice too’

Search for    or go to Top of page |  Section 1 |  Main Index


Version 2.2.0 SET_COLOR (1) Mon Jul 6 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.