Terminal.Gui
1.0.0.0
System.Object
Simple main loop implementation that can be used to monitor
file descriptor, run timers and idle handlers.
Monitoring of file descriptors is only available on Unix, there
does not seem to be a way of supporting this on Windows.
Constructor
Default constructor
To be added.
Constructor
1.0.0.0
To be added.
Creates a new Mainloop, to run it you must provide a driver, and choose
one of the implementations UnixMainLoop, NetMainLoop or WindowsMainLoop.
To be added.
Method
1.0.0.0
System.Func<System.Boolean>
To be added.
Executes the specified @idleHandler on the idle loop. The return value is a token to remove it.
To be added.
To be added.
Method
1.0.0.0
System.Object
To be added.
To be added.
Adds a timeout to the mainloop.
To be added.
When time time specified passes, the callback will be invoked.
If the callback returns true, the timeout will be reset, repeating
the invocation. If it returns false, the timeout will stop.
The returned value is a token that can be used to stop the timeout
by calling RemoveTimeout.
Method
System.Object
To be added.
To be added.
To be added.
Watches a file descriptor for activity.
To be added.
When the condition is met, the provided callback
is invoked. If the callback returns false, the
watch is automatically removed.
The return value is a token that represents this watch, you can
use this token to remove the watch by calling RemoveWatch.
Property
1.0.0.0
Mono.Terminal.IMainLoopDriver
The current IMainLoopDriver in use.
The driver.
To be added.
Method
1.0.0.0
System.Boolean
To be added.
Determines whether there are pending events to be processed.
To be added.
You can use this method if you want to probe if events are pending.
Typically used if you need to flush the input queue while still
running some of your own code in your main thread.
Method
1.0.0.0
System.Void
To be added.
Runs @action on the thread that is processing events
To be added.
Method
1.0.0.0
System.Void
Runs one iteration of timers and file watches
You use this to process all pending events (timers, idle handlers and file watches).
You can use it like this:
while (main.EvensPending ()) MainIteration ();
Method
1.0.0.0
System.Void
To be added.
Removes the specified idleHandler from processing.
To be added.
Method
1.0.0.0
System.Void
To be added.
Removes a previously scheduled timeout
The token parameter is the value returned by AddTimeout.
Method
System.Void
To be added.
Removes an active watch from the mainloop.
The token parameter is the value returned from AddWatch
Method
1.0.0.0
System.Void
Runs the mainloop.
To be added.
Method
1.0.0.0
System.Void
Stops the mainloop.
To be added.
Field
System.Action<System.ConsoleKeyInfo>
This event is raised when a key is pressed when using the Windows driver.
To be added.