mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
ReadLine restore consolemode fix
This commit is contained in:
parent
23729f8c0b
commit
49df1ffc59
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue