Method GetConsoleKey
GetConsoleKey(char, string?, ref ConsoleModifiers, ref char)
Gets the ConsoleKey depending on terminating and value.
public static ConsoleKey GetConsoleKey(char terminator, string? value, ref ConsoleModifiers mod, ref char keyChar)
Parameters
terminator
charThe terminator indicating a reply to CSI_SendDeviceAttributes or CSI_SendDeviceAttributes2.
value
stringThe value.
mod
ConsoleModifiersThe ConsoleModifiers which may change.
keyChar
charNormally is '\0' but on some cases may need other value.
Returns
- ConsoleKey
The ConsoleKey and probably the ConsoleModifiers.