HomePhabricator

Set Windows console mode to enable support for ansi escape codes

Description

Set Windows console mode to enable support for ansi escape codes

Summary:
Windows console now supports supports ANSI escape codes, but we need to enable it using SetConsoleMode with ENABLE_VIRTUAL_TERMINAL_PROCESSING flag.

https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences.

Syntax hightlighting now works fine on Windows:
https://i.imgur.com/P0i04A7.png

Reviewers: JDevlieghere, teemperor, zturner

Reviewed By: zturner

Subscribers: abidh, lldb-commits

Differential Revision: https://reviews.llvm.org/D51615

Details

Committed
xbolva00Sep 5 2018, 3:06 PM
Reviewer
zturner
Differential Revision
D51615: Set Windows console mode to enable support for ansi escape codes
Branches
Unknown
Tags
Unknown