/// <summary> /// Default constructor /// </summary> public SeeGuiApp() { //SeeGui.Init(); SeeGui.SetTitle(AppName); Timer = new Timer(new TimerCallback(UpdateWindow), null, 500, 500); }
/// <summary> /// Constructor /// </summary> /// <param name="name">Set the aplication name</param> public SeeGuiApp(string name) { // Start the OS related settings SeeGui.Init(); // Set the App Title on terminal SeeGui.SetTitle(name); // Set the App title AppName = name; // Timer to control resize of window Timer = new Timer(new TimerCallback(UpdateWindow), null, 500, 250); }
/// <summary> /// Default constructor /// Retrieves all available console information /// </summary> public ScreenInfo() { // Screen dimensions Width = Console.WindowWidth; Height = Console.WindowHeight; MaxWidth = Console.LargestWindowWidth; MaxHeight = Console.LargestWindowHeight; // Buffers BufferWidth = Console.BufferWidth; BufferHeight = Console.BufferHeight; // Keys Status // TODO Linux if (SeeGui.IsWindowsOS()) { CapsLock = Console.CapsLock; NumLock = Console.NumberLock; } }