From ae25d5ea4b06334d9d24191bd969a4d23a39cf6f Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Thu, 14 Feb 2019 01:11:46 +0100 Subject: [PATCH] attempt to fix newline bug --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 90d9599..e9b371c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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))]