attempt to fix newline bug
This commit is contained in:
parent
9f09faa0ba
commit
ae25d5ea4b
@ -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))]
|
||||||
|
Loading…
Reference in New Issue
Block a user