@@ -163,10 +163,9 @@ public static Task<int> GetCursorTopAsync(CancellationToken cancellationToken) =
163163 s_consoleProxy . GetCursorTopAsync ( cancellationToken ) ;
164164
165165 /// <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.
170169 /// </summary>
171170 /// <param name="intercept">
172171 /// Determines whether to display the pressed key in the console window.
@@ -181,11 +180,11 @@ public static Task<int> GetCursorTopAsync(CancellationToken cancellationToken) =
181180 /// in a bitwise combination of ConsoleModifiers values, whether one or more Shift, Alt,
182181 /// or Ctrl modifier keys was pressed simultaneously with the console key.
183182 /// </returns>
184- internal static ConsoleKeyInfo UnixReadKey ( bool intercept , CancellationToken cancellationToken )
183+ internal static ConsoleKeyInfo SafeReadKey ( bool intercept , CancellationToken cancellationToken )
185184 {
186185 try
187186 {
188- return ( ( UnixConsoleOperations ) s_consoleProxy ) . ReadKey ( intercept , cancellationToken ) ;
187+ return s_consoleProxy . ReadKey ( intercept , cancellationToken ) ;
189188 }
190189 catch ( OperationCanceledException )
191190 {
0 commit comments