attempt to fix newline bug

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

View File

@ -10,7 +10,7 @@ pub fn init() {
let mut state: DWORD = 0; let mut state: DWORD = 0;
assert_ne!(unsafe { GetConsoleMode(console_out, &mut state) }, 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); assert_ne!(unsafe { SetConsoleMode(console_out, state) }, 0);
} }
#[cfg(not(windows))] #[cfg(not(windows))]