From cc4303f47512dd83d60f2864ef4ea5cd5f587206 Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Thu, 14 Feb 2019 01:19:30 +0100 Subject: [PATCH] another attempt was made --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index e9b371c..de29ae0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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))]