...
 
Commits (2)
......@@ -7,9 +7,8 @@ description = "Utility to activate escape codes in Windows' CMD and PowerShell"
repository = "https://github.com/Phundrak/output-vt100-rs"
keywords = ["vt100", "console", "ansi"]
readme = "README.md"
licence = "GPL-3.0"
license = "GPL-3.0"
categories = ["development-tools"]
[dependencies]
ctor = "0.1.7"
winapi = { version = "0.3.6", features = ["winuser", "winbase", "consoleapi", "processenv"] }
......@@ -10,7 +10,7 @@ pub fn init() {
let mut state: DWORD = 0;
assert_ne!(unsafe { GetConsoleMode(console_out, &mut state) }, 0);
state |= ENABLE_VIRTUAL_TERMINAL_PROCESSING | DISABLE_NEWLINE_AUTO_RETURN;
state |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
assert_ne!(unsafe { SetConsoleMode(console_out, state) }, 0);
}
#[cfg(not(windows))]
......