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

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

    In lastest win10, it can be done by SetConsoleMode(originMode | ENABLE_VIRTUAL_TERMINAL_PROCESSING). See https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#example

提交回复
热议问题