wincolor: add support for enabling VT100

This commit adds a new method to the Console type which permits toggling
the VIRTUAL_TERMINAL_PROCESSING mode on a console. Specifically, this
enables the use of ANSI escape sequences for color in Windows terminals.
This commit is contained in:
Andrew Gallant
2018-02-10 18:41:07 -05:00
parent 7e5589f07d
commit 65a63788bc
2 changed files with 33 additions and 2 deletions

View File

@@ -16,5 +16,6 @@ license = "Unlicense/MIT"
name = "wincolor"
bench = false
[dependencies]
winapi = { version = "0.3", features = ["minwindef", "processenv", "winbase", "wincon"] }
[dependencies.winapi]
version = "0.3"
features = ["consoleapi", "minwindef", "processenv", "winbase", "wincon"]