private static void UpdateBuffer() { _maxLineLength = Math.Max(_maxLineLength, CurrentLine.Length); var pos = Console.CursorLeft; Console.CursorLeft = 0; Console.Write(CurrentLine.PadRight(_maxLineLength)); Console.CursorLeft = pos; }