sending color characters to the terminal


i'm writing c++ program runs in terminal. absolutely wonderful send of characters terminal in color instead of usual black.

of course c++ not have built-in color support...

instead, hoping do, instance, send ascii or unicode sequence terminal program runs, saying (for instance), ok want current text red, ok want current text blue, etc., etc.

there must ascii or unicode sequence tells terminal switch colors program executes. can point me useful example this?
 

hi

think need use ansi escape codes. try wiipedia!

b e n
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Currys UK online order nightmare!

Mini-DVI to DVI-I?

New iMac here - LOVING the Mighty Mouse