API Reference
Class
TerminalGuard
Restores the screen and saved Windows output mode on disposal, termination or a second Ctrl+C.
Inheritance
- Object
- TerminalGuard
Constructors
public TerminalGuard(Action restore, Boolean 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 System.Boolean = true
- Whether to intercept Ctrl+C.
Methods
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?