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

adam

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 61
    • View Profile
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
  • *****
  • Thank You
  • -Given: 7
  • -Receive: 87
  • Posts: 1098
    • 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

  • Sr. Member
  • ****
  • Thank You
  • -Given: 6
  • -Receive: 15
  • Posts: 295
    • 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

adam

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 61
    • View Profile
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.