|
@@ -337,8 +337,8 @@ public abstract class ConsoleDriver
|
|
|
{
|
|
|
for (int c = rect.X; c < rect.X + rect.Width; c++)
|
|
|
{
|
|
|
- Application.Driver.Move (c, r);
|
|
|
- Application.Driver.AddRune (rune == default (Rune) ? new Rune (' ') : rune);
|
|
|
+ Move (c, r);
|
|
|
+ AddRune (rune == default (Rune) ? new Rune (' ') : rune);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -437,6 +437,7 @@ public abstract class ConsoleDriver
|
|
|
/// <summary>Gets whether the <see cref="ConsoleDriver"/> supports TrueColor output.</summary>
|
|
|
public virtual bool SupportsTrueColor => true;
|
|
|
|
|
|
+ // TODO: This makes ConsoleDriver dependent on Application, which is not ideal. This should be moved to Application.
|
|
|
/// <summary>
|
|
|
/// Gets or sets whether the <see cref="ConsoleDriver"/> should use 16 colors instead of the default TrueColors.
|
|
|
/// See <see cref="Application.Force16Colors"/> to change this setting via <see cref="ConfigurationManager"/>.
|
|
@@ -466,6 +467,7 @@ public abstract class ConsoleDriver
|
|
|
get => _currentAttribute;
|
|
|
set
|
|
|
{
|
|
|
+ // TODO: This makes ConsoleDriver dependent on Application, which is not ideal. Once Attribute.PlatformColor is removed, this can be fixed.
|
|
|
if (Application.Driver is { })
|
|
|
{
|
|
|
_currentAttribute = new Attribute (value.Foreground, value.Background);
|