Table of Contents

Method GetConsoleKey

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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 char

The terminator indicating a reply to CSI_SendDeviceAttributes or CSI_SendDeviceAttributes2.

value string

The value.

mod ConsoleModifiers

The ConsoleModifiers which may change.

keyChar char

Normally is '\0' but on some cases may need other value.

Returns

ConsoleKey

The ConsoleKey and probably the ConsoleModifiers.