7 Apr 2003 20:16
ANSI Colors in MinGW
Hi, What I would like to do is create a Win32 console mode application that prints colored text to the console. In DJGPP, I could access some functions that would allow me to print with 16 or so colors. Unfortunately, DJGPP does not create Win32 applications like MinGW does. Yet I can't find out (after extensive Googling) how to print colored text to the console in MinGW. If at all possible I would like the resulting executables to be standalone; i.e. they can be run on another system by themselves and still work. (This is the case for normal MinGW executables.) This thread: http://www.geocrawler.com/mail/msg.php3?msg_id=9136852&list=18160 mentions that you have to link executables against msys-1.0.dll instead of MSVCRT. I can't figure out how to do this with MinGW alone, much less statically. I tried installing MSYS and compiling the given application under MSYS; when I ran objdump on it, it was still linked against MSVCRT. The executable would print colors under MSYS but not under cmd.exe. I'd appreciate any light that anyone can shed on this manner. Stephan T. Lavavej ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/(Continue reading)
RSS Feed