Table of Contents

Method RunLoop

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RunLoop(RunState, bool)

Building block API: Runs the MainLoop for the created Toplevel.

public static void RunLoop(Application.RunState state, bool wait = true)

Parameters

state Application.RunState

The state returned by the Begin(Toplevel) method.

wait bool

By default this is true which will execute the runloop waiting for events, if set to false, a single iteration will execute.

Remarks

Use the wait parameter to control whether this is a blocking or non-blocking call.