Table of Contents

Interface IInputInjector

Namespace
Terminal.Gui.Testing
Assembly
Terminal.Gui.dll

High-level input injection API - single entry point for all injection.

public interface IInputInjector

Methods

InjectKey(Key, InputInjectionOptions?)

Injects a keyboard event. Handles encoding, queueing, and processing automatically.

InjectMouse(Mouse, InputInjectionOptions?)

Injects a mouse event. Handles encoding, queueing, and processing automatically.

InjectSequence(IEnumerable<InputInjectionEvent>, InputInjectionOptions?)

Injects a sequence of input events with delays between them.

ProcessQueue()

Forces processing of the input queue (usually automatic).