[Ilugc] current text and background color of shell
- From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
- Date: Tue Jun 14 15:00:30 2005
On Mon, 13 Jun 2005, com bio wrote:
I would like to get the current colour of the text and background of
shell in a c program.
printf("\033[1;32m Hello World \033[0m");
Output Green color. Find other color values from the console Esc
Sequence.
Note: Plz avoid cross-posting.
Bye :)
--
Bharathi S
Other related posts: