Obtains the next character or function key pressed by the user. The pressed key is optionally displayed in the console window.
- Parameters
-
intercept | Determines whether to display the pressed key in the console window. true to not display the pressed key; otherwise, false |
- Returns
- xtd::console_key_info A xtd::console_key_info object that describes the ConsoleKey constant and Unicode character, if any, that correspond to the pressed console key. The xtd::console_key_info object also describes, in a bitwise combination of ConsoleModifiers values, whether one or more SHIFT, ALT, or CTRL modifier keys was pressed simultaneously with the console key.