OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: arr531 on February 03, 2017, 09:51:08 pm

Title: Printf and ansi color codes
Post by: arr531 on February 03, 2017, 09:51:08 pm
Just a simple question guys. Using open watcom 1.9  and wondering if it supports using ansi color codes with printf to change text colors? I have never done it using printf or is there a better way than printf to do it in open watcom? Thanks.
Title: Re: Printf and ansi color codes
Post by: Dave Yeo on February 03, 2017, 11:40:20 pm
Don't see why it wouldn't as it seems to work with GCC.
Title: Re: Printf and ansi color codes
Post by: Neil Waldhauer on February 04, 2017, 01:40:46 am
Works in old C++ Set, too.
Title: Re: Printf and ansi color codes
Post by: arr531 on February 04, 2017, 02:01:42 am
After doing a little more research and fiddling with the syntax - yep it works. Thanks guys.