Table of Contents

Interface IInputProcessor

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

Interface for main loop class that will process the queued input. Is responsible for ProcessQueue() and translating into common Terminal.Gui events and data models.

public interface IInputProcessor

Properties

DriverName

Gets the name of the driver associated with this input processor.

Methods

EnqueueKeyDownEvent(Key)

Adds a key up event to the input queue. For unit tests.

EnqueueKeyUpEvent(Key)

Adds a key up event to the input queue. For unit tests.

EnqueueMouseEvent(MouseEventArgs)

Adds a mouse input event to the input queue. For unit tests.

GetParser()

Gets the response parser currently configured on this input processor.

IsValidInput(Key, out Key)

Handles surrogate pairs in the input stream.

ProcessQueue()

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

RaiseKeyDownEvent(Key)

Called when a key down event has been dequeued. Raises the KeyDown event. This is a precursor to RaiseKeyUpEvent(Key).

RaiseKeyUpEvent(Key)

Called when a key up event has been dequeued. Raises the KeyUp event.

RaiseMouseEvent(MouseEventArgs)

Called when a mouse event has been dequeued. Raises the MouseEvent event.

Events

AnsiSequenceSwallowed

Event raised when a terminal sequence read from input is not recognized and therefore ignored.

KeyDown

Event raised when a key down event has been dequeued. This is a precursor to KeyUp.

KeyUp

Event raised when a key up event has been dequeued.

MouseEvent

Event raised when a mouse event has been dequeued.