Class MainLoop | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class MainLoop<T> : IMainLoop<T>, IDisposable
Type Parameters
T
Inheritance
MainLoop
Implements
Inherited Members
Fields
Handles raising events and setting required draw status etc when Top changes
Properties
Gets the class responsible for sending ANSI escape requests which expect a response from the remote terminal e.g. Device Attribute Request
The input events thread-safe collection. This is populated on separate thread by a IConsoleInput. Is drained as part of eachIteration()
Gets the class responsible for processing buffered console input and translating it into events on the UI thread.
Determines how to get the current system type, adjust in unit tests to simulate specific timings.
Class for writing output to the console.
Gets the class responsible for writing final rendered output to the console
Gets the class responsible for servicing user timeouts and idles
Gets the class responsible for determining the current console size
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Initialize(ITimedEvents, ConcurrentQueue, IInputProcessor, IConsoleOutput)
Initializes the class with the provided subcomponents
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.