private void UpdateScreenData() { int offset = 0; NCurses.AttributeSet(CursesAttribute.NORMAL); NCurses.Nap(DefaultFramerate); NCurses.Erase(); for (int i = 0; i < Buffer.Height; i++) { for (int j = 0; j < Buffer.Width; j++) { NCurses.AttributeSet(NCurses.ColorPair(_colorMap[Buffer[offset++]])); NCurses.MoveAddChar(i, j, ' '); } } NCurses.Refresh(); }
private static void GetColor() { uint bold = (rng.Next(2) > 0) ? CursesAttribute.BOLD : CursesAttribute.NORMAL; NCurses.AttributeSet(NCurses.ColorPair((short)rng.Next(8)) | bold); }