another attempt was made

This commit is contained in:
Phuntsok Drak-pa 2019-02-14 01:19:30 +01:00
parent ae25d5ea4b
commit cc4303f475
No known key found for this signature in database
GPG Key ID: 9CB34B6827C66D22

View File

@ -11,6 +11,7 @@ pub fn init() {
let mut state: DWORD = 0;
assert_ne!(unsafe { GetConsoleMode(console_out, &mut state) }, 0);
state |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
state &= !DISABLE_NEWLINE_AUTO_RETURN;
assert_ne!(unsafe { SetConsoleMode(console_out, state) }, 0);
}
#[cfg(not(windows))]