1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/lib/Support/Windows
David Bolvansky 2b323c39a7 Set console mode when -fansi-escape-codes is enabled
Summary:
Windows console now supports supports ANSI escape codes, but we need to enable it using SetConsoleMode with ENABLE_VIRTUAL_TERMINAL_PROCESSING flag.

Fixes https://bugs.llvm.org/show_bug.cgi?id=38817


Tested on Windows 10, screenshot:
https://i.imgur.com/bqYq0Uy.png

Reviewers: zturner, chandlerc

Reviewed By: zturner

Subscribers: llvm-commits

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

llvm-svn: 341396
2018-09-04 19:23:05 +00:00
..
COM.inc
DynamicLibrary.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
explicit_symbols.inc
Host.inc [Support] Avoid normalization in sys::getDefaultTargetTriple 2018-05-25 20:39:37 +00:00
Memory.inc
Mutex.inc
Path.inc [Support] NFC: Allow modifying access/modification times independently in sys::fs::setLastModificationAndAccessTime. 2018-08-13 23:03:45 +00:00
Process.inc Set console mode when -fansi-escape-codes is enabled 2018-09-04 19:23:05 +00:00
Program.inc Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
RWMutex.inc Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
Signals.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
Threading.inc
ThreadLocal.inc
Watchdog.inc
WindowsSupport.h Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00