Пример #1
0
 private static void FillConsoleLine(char c, int line)
 {
     ConsoleBuffer.FillLine(c, line);
     Console.SetCursorPosition(0, line);
 }
Пример #2
0
 private static void ReplaceLine(string text, int line)
 {
     text = text.Length > Console.WindowWidth ? text.Substring(0, Console.WindowWidth - 3) + "..." : text;
     ConsoleBuffer.ClearLine((short)line);
     ConsoleBuffer.WriteAt(0, (short)line, text);
 }
Пример #3
0
 private static void GotoMenuStart()
 {
     ConsoleBuffer.ClearLines(Console.CursorTop - 5, Console.CursorTop);
     Console.SetCursorPosition(0, Console.CursorTop - 5);
 }