diff --git a/Commandline/TUI/Screen.cs b/Commandline/TUI/Screen.cs index 79b2b8e..69ce44a 100644 --- a/Commandline/TUI/Screen.cs +++ b/Commandline/TUI/Screen.cs @@ -30,10 +30,23 @@ namespace CC_Functions.Commandline.TUI /// Args public delegate void OnWindowResize(Screen screen, EventArgs e); + private bool _color; + /// /// Whether to output in color. Recommended for most terminals, might cause slowdowns in others /// - public readonly bool Color; + public bool Color + { + get => _color; + set + { + if (_color != value) + { + _color = value; + DiffDraw.Draw(_color); + } + } + } private int _wndHeight = Console.WindowHeight; private int _wndWidth = Console.WindowWidth;