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

后端 未结 13 1900
忘了有多久
忘了有多久 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:25

    Starting from Windows 10, you can use ENABLE_VIRTUAL_TERMINAL_PROCESSING to enable ANSI escape sequences:

    https://msdn.microsoft.com/en-us/library/windows/desktop/mt638032(v=vs.85).aspx

提交回复
热议问题