SpecialKeyToken
Namespace: Hex1b.Tokens
Assembly: Hex1b.dll
Represents a function key or special key sequence in the format ESC [ n ~.
public sealed record SpecialKeyToken : AnsiToken, IEquatable<AnsiToken>, IEquatable<SpecialKeyToken>Inheritance
Object → AnsiToken → SpecialKeyToken
Implements
Constructors
SpecialKeyToken(int, int)
Represents a function key or special key sequence in the format ESC [ n ~.
Parameters:
KeyCode(Int32): The key code number before the tilde.Modifiers(Int32): The modifier code (1=none, 2=Shift, 3=Alt, 5=Ctrl, etc.).
public SpecialKeyToken(int KeyCode, int Modifiers = 1)Properties
KeyCode
The key code number before the tilde.
Returns: Int32
public int KeyCode { get; init; }Modifiers
The modifier code (1=none, 2=Shift, 3=Alt, 5=Ctrl, etc.).
Returns: Int32
public int Modifiers { get; init; }Remarks
Common sequences: ESC [ 1 ~ = Home (vt)ESC [ 2 ~ = InsertESC [ 3 ~ = DeleteESC [ 4 ~ = End (vt)ESC [ 5 ~ = Page UpESC [ 6 ~ = Page DownESC [ 7 ~ = Home (rxvt)ESC [ 8 ~ = End (rxvt)ESC [ 11 ~ = F1 (vt)ESC [ 12 ~ = F2 (vt)ESC [ 13 ~ = F3 (vt)ESC [ 14 ~ = F4 (vt)ESC [ 15 ~ = F5ESC [ 17 ~ = F6ESC [ 18 ~ = F7ESC [ 19 ~ = F8ESC [ 20 ~ = F9ESC [ 21 ~ = F10ESC [ 23 ~ = F11ESC [ 24 ~ = F12 With modifiers, the format is ESC [ n ; m ~ where m is the modifier code.