(Dr.R.K.) Utilities - color

Go to Top Go to Bottom blank blank Go up one level R.K.'s Home Page Keyword Index Site Map Help Linux

color - outputs an ANSI character attribute & color sequence

color outputs an ANSI character attribute & color sequence which are of the form ^[[xx;xx;xxm, where ^[ is an character and xx are the proper character codes for attribute, background, and foreground character color. Each one is output as processed and errors are ignored.

A useful little utility for adding a little color to otherwise dreary and drab scripts. However, color assumes that the ANSI attribute & color sequence means something to the terminal, i.e. that it has vt100-like capability. color outputs the sequence regardless whether to a terminal device or not.


Brought to you by: R.K. Owen,Ph.D.
This page is http://rkowen.owentrek.com/sources/utils/color.html