public void WriteText(Point position, string message, Color16 foreColor, Color16 backColor) { string[] lines = message.Split(new string[] { "\r\n" }, StringSplitOptions.None); for (int i = 0; i < lines.Length; i++) { WriteLine(position.AddToY(i), lines[i], foreColor, backColor); } }
public void VLine(Point startPosition, int length, TextCell cell) { if (length < 1 || startPosition.X < 0 || startPosition.X >= Size.Width) { return; } for (int i = 0; i < length; i++) // TODO: needs optimization { Write(startPosition.AddToY(i), cell); } }