Table of Contents

Method Shutdown

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Shutdown()

Shutdown an application initialized with Init(string?).

[Obsolete("The legacy static Application object is going away.")]
public static void Shutdown()

Remarks

Shutdown must be called for every call to Init(string?) or Run(Toplevel, Func<Exception, bool>?) to ensure all resources are cleaned up (Disposed) and terminal settings are restored.

When used in a fluent chain with Run<TRunnable>(Func<Exception, bool>?), this method automatically disposes the runnable instance and extracts its result for return.

Supports fluent API: var result = Application.Create().Init().Run<MyView>().Shutdown() as MyResultType