@@ -47,120 +47,33 @@ public static ConsoleKeyInfo ReadKey(bool intercept, CancellationToken cancellat
4747 s_consoleProxy . ReadKey ( intercept , cancellationToken ) ;
4848
4949 /// <summary>
50- /// Obtains the next character or function key pressed by the user asynchronously.
51- /// Does not block when other console API's are called.
52- /// </summary>
53- /// <param name="intercept">
54- /// Determines whether to display the pressed key in the console window. <see langword="true" />
55- /// to not display the pressed key; otherwise, <see langword="false" />.
56- /// </param>
57- /// <param name="cancellationToken">The CancellationToken to observe.</param>
58- /// <returns>
59- /// A task that will complete with a result of the key pressed by the user.
60- /// </returns>
61- public static Task < ConsoleKeyInfo > ReadKeyAsync ( bool intercept , CancellationToken cancellationToken ) =>
62- s_consoleProxy . ReadKeyAsync ( intercept , cancellationToken ) ;
63-
64- /// <summary>
65- /// Obtains the horizontal position of the console cursor. Use this method
66- /// instead of <see cref="System.Console.CursorLeft" /> to avoid triggering
67- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
68- /// on Unix platforms.
50+ /// Obtains the horizontal position of the console cursor. TODO: Is this still necessary?
6951 /// </summary>
7052 /// <returns>The horizontal position of the console cursor.</returns>
71- public static int GetCursorLeft ( ) =>
72- s_consoleProxy . GetCursorLeft ( ) ;
53+ public static int GetCursorLeft ( ) => s_consoleProxy . GetCursorLeft ( ) ;
7354
7455 /// <summary>
75- /// Obtains the horizontal position of the console cursor. Use this method
76- /// instead of <see cref="System.Console.CursorLeft" /> to avoid triggering
77- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
78- /// on Unix platforms.
56+ /// Obtains the horizontal position of the console cursor. TODO: Is this still necessary?
7957 /// </summary>
8058 /// <param name="cancellationToken">The <see cref="CancellationToken" /> to observe.</param>
8159 /// <returns>The horizontal position of the console cursor.</returns>
8260 public static int GetCursorLeft ( CancellationToken cancellationToken ) =>
8361 s_consoleProxy . GetCursorLeft ( cancellationToken ) ;
8462
8563 /// <summary>
86- /// Obtains the horizontal position of the console cursor. Use this method
87- /// instead of <see cref="System.Console.CursorLeft" /> to avoid triggering
88- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
89- /// on Unix platforms.
90- /// </summary>
91- /// <returns>
92- /// A <see cref="Task{T}" /> representing the asynchronous operation. The
93- /// <see cref="Task{T}.Result" /> property will return the horizontal position
94- /// of the console cursor.
95- /// </returns>
96- public static Task < int > GetCursorLeftAsync ( ) =>
97- s_consoleProxy . GetCursorLeftAsync ( ) ;
98-
99- /// <summary>
100- /// Obtains the horizontal position of the console cursor. Use this method
101- /// instead of <see cref="System.Console.CursorLeft" /> to avoid triggering
102- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
103- /// on Unix platforms.
104- /// </summary>
105- /// <param name="cancellationToken">The <see cref="CancellationToken" /> to observe.</param>
106- /// <returns>
107- /// A <see cref="Task{T}" /> representing the asynchronous operation. The
108- /// <see cref="Task{T}.Result" /> property will return the horizontal position
109- /// of the console cursor.
110- /// </returns>
111- public static Task < int > GetCursorLeftAsync ( CancellationToken cancellationToken ) =>
112- s_consoleProxy . GetCursorLeftAsync ( cancellationToken ) ;
113-
114- /// <summary>
115- /// Obtains the vertical position of the console cursor. Use this method
116- /// instead of <see cref="System.Console.CursorTop" /> to avoid triggering
117- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
118- /// on Unix platforms.
64+ /// Obtains the vertical position of the console cursor. TODO: Is this still necessary?
11965 /// </summary>
12066 /// <returns>The vertical position of the console cursor.</returns>
121- public static int GetCursorTop ( ) =>
122- s_consoleProxy . GetCursorTop ( ) ;
67+ public static int GetCursorTop ( ) => s_consoleProxy . GetCursorTop ( ) ;
12368
12469 /// <summary>
125- /// Obtains the vertical position of the console cursor. Use this method
126- /// instead of <see cref="System.Console.CursorTop" /> to avoid triggering
127- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
128- /// on Unix platforms.
70+ /// Obtains the vertical position of the console cursor. TODO: Is this still necessary?
12971 /// </summary>
13072 /// <param name="cancellationToken">The <see cref="CancellationToken" /> to observe.</param>
13173 /// <returns>The vertical position of the console cursor.</returns>
13274 public static int GetCursorTop ( CancellationToken cancellationToken ) =>
13375 s_consoleProxy . GetCursorTop ( cancellationToken ) ;
13476
135- /// <summary>
136- /// Obtains the vertical position of the console cursor. Use this method
137- /// instead of <see cref="System.Console.CursorTop" /> to avoid triggering
138- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
139- /// on Unix platforms.
140- /// </summary>
141- /// <returns>
142- /// A <see cref="Task{T}" /> representing the asynchronous operation. The
143- /// <see cref="Task{T}.Result" /> property will return the vertical position
144- /// of the console cursor.
145- /// </returns>
146- public static Task < int > GetCursorTopAsync ( ) =>
147- s_consoleProxy . GetCursorTopAsync ( ) ;
148-
149- /// <summary>
150- /// Obtains the vertical position of the console cursor. Use this method
151- /// instead of <see cref="System.Console.CursorTop" /> to avoid triggering
152- /// pending calls to <see cref="IConsoleOperations.ReadKeyAsync(bool, CancellationToken)" />
153- /// on Unix platforms.
154- /// </summary>
155- /// <param name="cancellationToken">The <see cref="CancellationToken" /> to observe.</param>
156- /// <returns>
157- /// A <see cref="Task{T}" /> representing the asynchronous operation. The
158- /// <see cref="Task{T}.Result" /> property will return the vertical position
159- /// of the console cursor.
160- /// </returns>
161- public static Task < int > GetCursorTopAsync ( CancellationToken cancellationToken ) =>
162- s_consoleProxy . GetCursorTopAsync ( cancellationToken ) ;
163-
16477 /// <summary>
16578 /// This method is sent to PSReadLine as a workaround for issues with the System.Console
16679 /// implementation. Functionally it is the same as System.Console.ReadKey,
0 commit comments