예제 #1
0
        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;
        }