Table of Contents

Interface IInputProcessor

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

Processes queued input on the main loop thread, translating driver-specific input into Terminal.Gui events and data models.

public interface IInputProcessor

Methods

GetParser()

Gets the ANSI response parser for handling escape sequences.

InjectKeyDownEvent(Key)

Injects a key down event. For unit tests.

InjectMouseEvent(IApplication?, Mouse)

Enqueues a mouse event. For unit tests.

IsValidInput(Key, out Key)

Validates and processes Unicode surrogate pairs in the input stream.

ProcessQueue()

Drains the input queue, processing all available input. Must be called on the main loop thread.

RaiseKeyDownEvent(Key)

Raises the KeyDown event after a key down event is dequeued.

RaiseMouseEventParsed(Mouse)

Raises the MouseEventParsed event after a mouse event is parsed from the driver.

Events

AnsiSequenceSwallowed

Event raised when an unrecognized ANSI escape sequence is ignored.

KeyDown

Event raised when a key down event is dequeued.

MouseEventParsed

Event raised when a mouse event is parsed from the driver. For debugging and unit tests.

SyntheticMouseEvent

Event raised when synthetic mouse events (clicks, double-clicks, triple-clicks) are generated.