using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Engine
{
///
/// Provides extra eye candy data that can be used by ShiftOS terminals.
///
public static class ConsoleEx
{
///
/// Initializes the class, performing core configuration.
///
static ConsoleEx()
{
ForegroundColor = ConsoleColor.White;
BackgroundColor = ConsoleColor.Black;
Bold = false;
Italic = false;
Underline = false;
}
///
/// Gets or sets the foreground color of text in the Terminal.
///
public static ConsoleColor ForegroundColor { get; set; }
///
/// Gets or sets the background color of text in the Terminal.
///
public static ConsoleColor BackgroundColor { get; set; }
///
/// Gets or sets whether text in the Terminal is bold.
///
public static bool Bold { get; set; }
///
/// Gets or sets whether text in the Terminal is italic.
///
public static bool Italic { get; set; }
///
/// Gets or sets whether text in the Terminal is underlined.
///
public static bool Underline { get; set; }
internal static void Flush()
{
OnFlush?.Invoke();
}
public static Action OnFlush;
}
}