@@ -151,7 +151,7 @@ private bool ReadLineCore(bool consumeKeys)
151
151
// Don't carry over chars from previous ReadLine call.
152
152
_readLineSB . Clear ( ) ;
153
153
154
- Interop . Sys . InitializeConsoleBeforeRead ( distinguishNewLines : ! ConsoleUtils . UseNet6KeyParser ) ;
154
+ Interop . Sys . InitializeConsoleBeforeRead ( ) ;
155
155
try
156
156
{
157
157
// Read key-by-key until we've read a line.
@@ -327,8 +327,7 @@ private unsafe ConsoleKeyInfo ReadKey()
327
327
{
328
328
Debug . Assert ( _availableKeys . Count == 0 ) ;
329
329
330
- bool useNet6KeyParser = ConsoleUtils . UseNet6KeyParser ;
331
- Interop . Sys . InitializeConsoleBeforeRead ( distinguishNewLines : ! useNet6KeyParser ) ;
330
+ Interop . Sys . InitializeConsoleBeforeRead ( ) ;
332
331
try
333
332
{
334
333
if ( IsUnprocessedBufferEmpty ( ) )
@@ -354,9 +353,7 @@ private unsafe ConsoleKeyInfo ReadKey()
354
353
}
355
354
}
356
355
357
- return useNet6KeyParser
358
- ? Net6KeyParser . Parse ( _unprocessedBufferToBeRead , ConsolePal . TerminalFormatStringsInstance , ConsolePal . s_posixDisableValue , ConsolePal . s_veraseCharacter , ref _startIndex , _endIndex )
359
- : KeyParser . Parse ( _unprocessedBufferToBeRead , ConsolePal . TerminalFormatStringsInstance , ConsolePal . s_posixDisableValue , ConsolePal . s_veraseCharacter , ref _startIndex , _endIndex ) ;
356
+ return KeyParser . Parse ( _unprocessedBufferToBeRead , ConsolePal . TerminalFormatStringsInstance , ConsolePal . s_posixDisableValue , ConsolePal . s_veraseCharacter , ref _startIndex , _endIndex ) ;
360
357
}
361
358
finally
362
359
{
@@ -365,6 +362,6 @@ private unsafe ConsoleKeyInfo ReadKey()
365
362
}
366
363
367
364
/// <summary>Gets whether there's input waiting on stdin.</summary>
368
- internal static bool StdinReady => Interop . Sys . StdinReady ( distinguishNewLines : ! ConsoleUtils . UseNet6KeyParser ) ;
365
+ internal static bool StdinReady => Interop . Sys . StdinReady ( ) ;
369
366
}
370
367
}
0 commit comments