HomePhabricator

Set Windows console mode to enable support for ansi escape codes

Authored by xbolva00 on Sep 5 2018, 3:06 PM.

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

llvm-svn: 341497

Details

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