protected override void OnPaint(ConsoleBitmap context)
{
for (int y = 0; y < lines.Count; y++)
{
if (y >= Height)
{
break;
}
var line = lines[y];
for (int x = 0; x < line.Count && x < Width; x++)
{
context.Pen = HasFocus ? new ConsoleCharacter(line[x].Value, DefaultColors.FocusContrastColor, DefaultColors.FocusColor) : line[x];
context.DrawPoint(x, y);
}
}
}