Author Topic: Printf and ansi color codes  (Read 4579 times)

arr531

  • Guest
Printf and ansi color codes
« 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.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: Printf and ansi color codes
« Reply #1 on: February 03, 2017, 11:40:20 pm »
Don't see why it wouldn't as it seems to work with GCC.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1024
  • Karma: +24/-0
    • View Profile
    • Blonde Guy
Re: Printf and ansi color codes
« Reply #2 on: February 04, 2017, 01:40:46 am »
Works in old C++ Set, too.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

arr531

  • Guest
Re: Printf and ansi color codes
« Reply #3 on: February 04, 2017, 02:01:42 am »
After doing a little more research and fiddling with the syntax - yep it works. Thanks guys.