#nullable enable
namespace Terminal.Gui.App;
public static partial class Application // Driver abstractions
{
internal static bool _forceFakeConsole;
/// Gets the that has been selected. See also .
public static IConsoleDriver? Driver
{
get => ApplicationImpl.Instance.Driver;
internal set => ApplicationImpl.Instance.Driver = value;
}
///
/// Gets or sets whether will be forced to output only the 16 colors defined in
/// . The default is , meaning 24-bit (TrueColor) colors will be output
/// as long as the selected supports TrueColor.
///
[ConfigurationProperty (Scope = typeof (SettingsScope))]
public static bool Force16Colors
{
get => ApplicationImpl.Instance.Force16Colors;
set => ApplicationImpl.Instance.Force16Colors = value;
}
///
/// Forces the use of the specified driver (one of "fake", "dotnet", "windows", or "unix"). If not
/// specified, the driver is selected based on the platform.
///
///
/// Note, will override this configuration setting if called
/// with either `driver` or `driverName` specified.
///
[ConfigurationProperty (Scope = typeof (SettingsScope))]
public static string ForceDriver
{
get => ApplicationImpl.Instance.ForceDriver;
set => ApplicationImpl.Instance.ForceDriver = value;
}
///
/// Collection of sixel images to write out to screen when updating.
/// Only add to this collection if you are sure terminal supports sixel format.
///
public static List Sixel => ApplicationImpl.Instance.Sixel;
}