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; }
public ResetOnDisposedConsoleState(ConsoleState state) { _state = state; }