ReadKeyOptions Enum

Definition

Governs the behavior of ReadKey() and ReadKey(ReadKeyOptions)

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[System.Flags]
public enum ReadKeyOptions
Inheritance
ReadKeyOptions
Attributes

Fields

AllowCtrlC

Allow Ctrl-C to be processed as a keystroke, as opposed to causing a break event.

IncludeKeyDown

Include key down events. Either one of IncludeKeyDown and IncludeKeyUp or both must be specified.

IncludeKeyUp

Include key up events. Either one of IncludeKeyDown and IncludeKeyUp or both must be specified.

NoEcho

Do not display the character for the key in the window when pressed.