From 49df1ffc590777f1d68fa06cd459112e24e21a7d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 8 Jan 2024 10:07:14 -0500 Subject: [PATCH] ReadLine restore consolemode fix --- BeefLibs/corlib/src/Console.bf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Console.bf b/BeefLibs/corlib/src/Console.bf index 8113f54b..ceb21f0d 100644 --- a/BeefLibs/corlib/src/Console.bf +++ b/BeefLibs/corlib/src/Console.bf @@ -270,8 +270,7 @@ namespace System #if BF_PLATFORM_WINDOWS var fs = In.BaseStream as FileStream; GetConsoleMode((.)fs.Handle, var consoleMode); - consoleMode |= ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT; - SetConsoleMode((.)fs.Handle, consoleMode); + SetConsoleMode((.)fs.Handle, consoleMode | ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT); #endif var result = In.ReadLine(strBuffer); #if BF_PLATFORM_WINDOWS