@@ -47,120 +47,33 @@ public static ConsoleKeyInfo ReadKey(bool intercept, CancellationToken cancellat
47
47
s_consoleProxy . ReadKey ( intercept , cancellationToken ) ;
48
48
49
49
/// <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?
69
51
/// </summary>
70
52
/// <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 ( ) ;
73
54
74
55
/// <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?
79
57
/// </summary>
80
58
/// <param name="cancellationToken">The <see cref="CancellationToken" /> to observe.</param>
81
59
/// <returns>The horizontal position of the console cursor.</returns>
82
60
public static int GetCursorLeft ( CancellationToken cancellationToken ) =>
83
61
s_consoleProxy . GetCursorLeft ( cancellationToken ) ;
84
62
85
63
/// <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?
119
65
/// </summary>
120
66
/// <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 ( ) ;
123
68
124
69
/// <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?
129
71
/// </summary>
130
72
/// <param name="cancellationToken">The <see cref="CancellationToken" /> to observe.</param>
131
73
/// <returns>The vertical position of the console cursor.</returns>
132
74
public static int GetCursorTop ( CancellationToken cancellationToken ) =>
133
75
s_consoleProxy . GetCursorTop ( cancellationToken ) ;
134
76
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
-
164
77
/// <summary>
165
78
/// This method is sent to PSReadLine as a workaround for issues with the System.Console
166
79
/// implementation. Functionally it is the same as System.Console.ReadKey,
0 commit comments