Colorize stdout output to Windows cmd.exe from console C++ app

前端 未结 2 1306
执笔经年
执笔经年 2020-12-19 12:09

I would like to write something similar to

cout << \"this text is not colorized\\n\";
setForeground(Color::Red);
cout << \"this text shows as red         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-19 12:24

    Take a look at http://gnuwin32.sourceforge.net/packages/ncurses.htm

提交回复
热议问题