public ConsoleGUI() { Console.ResetColor(); Console.Clear(); this.defaultBG = Console.BackgroundColor; this.logo = Logo.GetPixels(); this.redrawFlags = RedrawFlags.Logo | RedrawFlags.Prompt; this.currentDisplay = DisplayLog; if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { var colors = ColorMapper.GetBufferColors(); colors[ConsoleColor.DarkCyan] = new COLORREF(52, 133, 157); colors[ConsoleColor.Cyan] = new COLORREF(126, 196, 193); colors[ConsoleColor.Yellow] = new COLORREF(245, 237, 186); colors[ConsoleColor.Red] = new COLORREF(210, 100, 103); colors[ConsoleColor.Green] = new COLORREF(192, 199, 65); colors[ConsoleColor.Blue] = new COLORREF(140, 143, 174); colors[ConsoleColor.DarkBlue] = new COLORREF(88, 69, 99); ColorMapper.SetBatchBufferColors(colors); } Update(); }
public void SetChannel(string[] args, ContentDisplay display) { if (args.Length > 0) { SetChannel(args[0], display); } else { SetChannel(DefaultChannel, display); } }
public void SetChannel(string channel, ContentDisplay display) { if (currentChannel == channel && display == currentDisplay) { return; } if (currentDisplay != display) { currentDisplay = display; redrawFlags |= RedrawFlags.Prompt; } if (currentChannel != channel) { currentChannel = channel; redrawFlags |= RedrawFlags.Content; } }