Table of Contents

Interface IInputSource

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

Source of input events. Production implementations read from console, test implementations provide pre-programmed input.

public interface IInputSource

Properties

IsAvailable

Check if input is available without consuming it.

TimeProvider

Time provider for timestamps and timing.

Methods

ReadAvailable()

Reads all available input synchronously. Called by InputProcessor on the main loop thread.

Start(CancellationToken)

Starts background input reading (for production implementations). Test implementations typically don't need this.

Stop()

Stops background input reading.