Since there is enough packages in pipy dealing with the color output in terminal which I discovered after my own implimentation and found mine was cooler!
Run it in the the terminal supporting vt100 (i.e. gnome-terminal
, xterm
, lxterminal
) and execute the word given below:
$ make
NOTE: Some of the mode are not supported in yakuake
, konsole
& emacs shell
SGR is used to establish one or more graphic rendition aspects for subsequent text. The established aspects remain in effect until the next occurrence of SGR in the data stream, depending on the setting of the GRAPHIC RENDITION COMBINATION MODE (GRCM).