How to make win32 console recognize ANSI/VT100 escape sequences?

后端 未结 13 1573
忘了有多久
忘了有多久 2020-11-22 03:47

I\'m building a lightweight version of the ncurses library. So far, it works pretty well with VT100-compatible terminals, but win32 console fails to recognise the \\03

相关标签:
13条回答
  • 2020-11-22 04:45

    For coloring the cmd you need Windows.h and use SetConsoleTextAttribute() more details can be found in http://msdn.microsoft.com/en-us/library/windows/desktop/ms686047%28v=vs.85%29.aspx

    0 讨论(0)
提交回复
热议问题