Example #1
0
 public static ConsoleState GetState()
 {
     ConsoleState state = new ConsoleState();
     state._backgroundColor = Console.BackgroundColor;
     state._foregroundColor = Console.ForegroundColor;
     state._cursorLeft = Console.CursorLeft;
     state._cursorTop = Console.CursorTop;
     state._outputEncoding = Console.OutputEncoding;
     state._cursorVisible = Console.CursorVisible;
     return state;
 }
Example #2
0
 public ResetOnDisposedConsoleState(ConsoleState state)
 {
     _state = state;
 }