Look at /etc/DIR_COLORS it has an example of color codes and will give you some more info. To get color in your print statements you would use printf or fprintf with the appropriate color codes, defined in /etc/DIR_COLORS.
This is a little off topic, but you can also assign colors to various files by modifying this file, or placing a copy of it as ~/.dir_colors -----Original Message----- From: David Busby [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 5:51 PM To: [EMAIL PROTECTED] Subject: fprintf with color? List, How would I do something like a printf or fprintf to stdout, or stderr with my text in a different color? I want my program to display the errors on stderr (console window) in red, debug info in green and other good stuff...but I don't know which C/C++ function to use? Can some one provide that info? /B -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list