Table of Contents

Class EscSeqUtils

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Provides a platform-independent API for managing ANSI escape sequence codes.

public static class EscSeqUtils
Inheritance
EscSeqUtils
Inherited Members

Fields

CSI_DisableAnyEventMouse

Represents the CSI for disable any mouse event tracking.

CSI_DisableSgrExtModeMouse

Represents the CSI for disable SGR (Select Graphic Rendition).

CSI_DisableUrxvtExtModeMouse

Represents the CSI for disable URXVT (Unicode Extended Virtual Terminal).

CSI_EnableAnyEventMouse

Represents the CSI for enable any mouse event tracking.

CSI_EnableSgrExtModeMouse

Represents the CSI for enable SGR (Select Graphic Rendition).

CSI_EnableUrxvtExtModeMouse

Represents the CSI for enable URXVT (Unicode Extended Virtual Terminal).

KeyCSI

Represents the CSI (Control Sequence Introducer).

KeyEsc

Represents the escape key.

Properties

DisableMouseEvents

Control sequence for disable mouse events.

EnableMouseEvents

Control sequence for enable mouse events.

Methods

DecodeEscSeq(EscSeqReqProc, ref ConsoleKeyInfo, ref ConsoleKey, ConsoleKeyInfo[], ref ConsoleModifiers, out string, out string, out string[], out string, out bool, out List<MouseFlags>, out Point, out bool, Action<MouseFlags, Point>)

Decodes a escape sequence to been processed in the appropriate manner.

GetC1ControlChar(char)

Gets the c1Control used in the called escape sequence.

GetConsoleInputKey(ConsoleKeyInfo)

Ensures a console key is mapped to one that works correctly with ANSI escape sequences.

GetConsoleKey(char, string, ref ConsoleModifiers)

Gets the ConsoleKey depending on terminating and value.

GetConsoleModifiers(string)

Gets the ConsoleModifiers from the value.

GetEscapeResult(char[])

Gets all the needed information about a escape sequence.

GetKeyCharArray(ConsoleKeyInfo[])

A helper to get only the KeyChar from the ConsoleKeyInfo array.

GetMouse(ConsoleKeyInfo[], out List<MouseFlags>, out Point, Action<MouseFlags, Point>)

Gets the MouseFlags mouse button flags and the position.

GetParentProcess(Process)

Get the terminal that holds the console driver.

ResizeArray(ConsoleKeyInfo, ConsoleKeyInfo[])

A helper to resize the ConsoleKeyInfo as needed.