Class
TerminalGuard
ConsoleMonster.Output
Restores the screen and saved Windows output mode on disposal, termination or a second Ctrl+C.
Inheritance
- object
- TerminalGuard
Constructors
public TerminalGuard(Action restore, bool handleCancelKey = true) #Creates a guard, saving the output mode and hooking process termination events.
Parameters
- restore System.Action
- Restores the screen, cursor, attributes and host output routing.
- handleCancelKey bool = true
- Whether to intercept Ctrl+C.