@@ -163,10 +163,9 @@ public static Task<int> GetCursorTopAsync(CancellationToken cancellationToken) =
163
163
s_consoleProxy . GetCursorTopAsync ( cancellationToken ) ;
164
164
165
165
/// <summary>
166
- /// On Unix platforms this method is sent to PSReadLine as a work around for issues
167
- /// with the System.Console implementation for that platform. Functionally it is the
168
- /// same as System.Console.ReadKey, with the exception that it will not lock the
169
- /// standard input stream.
166
+ /// This method is sent to PSReadLine as a workaround for issues with the System.Console
167
+ /// implementation. Functionally it is the same as System.Console.ReadKey,
168
+ /// with the exception that it will not lock the standard input stream.
170
169
/// </summary>
171
170
/// <param name="intercept">
172
171
/// Determines whether to display the pressed key in the console window.
@@ -181,11 +180,11 @@ public static Task<int> GetCursorTopAsync(CancellationToken cancellationToken) =
181
180
/// in a bitwise combination of ConsoleModifiers values, whether one or more Shift, Alt,
182
181
/// or Ctrl modifier keys was pressed simultaneously with the console key.
183
182
/// </returns>
184
- internal static ConsoleKeyInfo UnixReadKey ( bool intercept , CancellationToken cancellationToken )
183
+ internal static ConsoleKeyInfo SafeReadKey ( bool intercept , CancellationToken cancellationToken )
185
184
{
186
185
try
187
186
{
188
- return ( ( UnixConsoleOperations ) s_consoleProxy ) . ReadKey ( intercept , cancellationToken ) ;
187
+ return s_consoleProxy . ReadKey ( intercept , cancellationToken ) ;
189
188
}
190
189
catch ( OperationCanceledException )
191
190
{
0 commit comments