Table of Contents

Interface IMainLoop<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Interface for main loop that runs the core Terminal.Gui UI loop.

public interface IMainLoop<T> : IDisposable

Type Parameters

T
Inherited Members

Properties

AnsiRequestScheduler

Gets the class responsible for sending ANSI escape requests which expect a response from the remote terminal e.g. Device Attribute Request

InputProcessor

Gets the class responsible for processing buffered console input and translating it into events on the UI thread.

Out

Class for writing output to the console.

OutputBuffer

Gets the class responsible for writing final rendered output to the console

TimedEvents

Gets the class responsible for servicing user timeouts and idles

WindowSizeMonitor

Gets the class responsible for determining the current console size

Methods

Initialize(ITimedEvents, ConcurrentQueue<T>, IInputProcessor, IConsoleOutput)

Initializes the loop with a buffer from which data can be read

Iteration()

Perform a single iteration of the main loop then blocks for a fixed length of time, this method is designed to be run in a loop.