COLORS(3) | 3 (libbash colors library manual) | COLORS(3) |
colors
— libbash
library for setting tty colors.
colorSet
colorReset
colorPrint
colorPrintN
colors
is a collection of functions that
make it very easy to put colored text on tty.
The function list:
Detailed interface description follows.
The color parameter is non-case-sensitive (i.e. RED, red, ReD, and all the other forms are valid and are the same as Red).
colorSet
⟨color⟩Sets the current printing color to color.
colorReset
Resets current tty color back to normal.
colorPrint
[⟨indent⟩]
⟨color⟩Prints text using the color color indented by indent (without adding a newline).
Parameters:
colorPrintN
[⟨indent⟩]
⟨color⟩The same as colorPrint, except a trailing newline is added.
Printing a green 'Hello World' with a newline:
Hai Zaar
⟨haizaar@haizaar.com⟩
Gil Ran ⟨gil@ran4.net⟩
Linux |