Method Init
Init(IConsoleDriver?, string?)
Initializes a new instance of a Terminal.Gui Application. Shutdown() must be called when the application is closing.
[RequiresUnreferencedCode("AOT")]
[RequiresDynamicCode("AOT")]
public static void Init(IConsoleDriver? driver = null, string? driverName = null)
Parameters
driverIConsoleDriverThe IConsoleDriver to use. If neither
driverordriverNameare specified the default driver for the platform will be used.driverNamestringThe short name (e.g. "dotnet", "windows", "unix", or "fake") of the IConsoleDriver to use. If neither
driverordriverNameare specified the default driver for the platform will be used.