TerminalHandoff
ConsoleMonster.Interactive
Hands a running app's terminal to an owned child PTY and restores its screen, raw input and focus afterwards. No recording or input history is written.
Inheritance
- object
- TerminalHandoff
Usage
Explore 9 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property ConsoleAppOptions.TerminalHandoff
- Extension method TerminalHandoff.OutputCapacity
- Method TerminalHandoffFluent.OutputCapacity
Accepted by parameters 6
- Extension method ConsoleAppOptions.TerminalHandoff
- Extension method ConsoleAppOptions.TerminalHandoff
- Method ConsoleAppOptionsFluent.TerminalHandoff
- Method ConsoleAppOptionsFluent.TerminalHandoff
- Extension method TerminalHandoff.OutputCapacity
- Method TerminalHandoffFluent.OutputCapacity
Constructors
public TerminalHandoff() #Methods
public void ShowOutput(CancellationToken cancellationToken = default) #Shows the last child's terminal screen until any key is pressed. Resizes redraw the output; focus and app modes are retained.
Parameters
- cancellationToken System.Threading.CancellationToken = default
public int SuspendForChild(TerminalChildOptions options, CancellationToken cancellationToken = default) #Runs a child on a real terminal. Call on the owning app thread from its registry or callback. Nonzero exit codes are returned; startup and transport errors escape after restoration.
Parameters
- options ConsoleMonster.Interactive.TerminalChildOptions
- cancellationToken System.Threading.CancellationToken = default
Returns
intInherited Methods
Properties
Extension Methods
public static TerminalHandoff OutputCapacity(TerminalHandoff terminalHandoff, int value) #Sets TerminalHandoff.OutputCapacity: Maximum retained output characters. Old output is dropped from the front; no child input is retained.
Parameters
- terminalHandoff ConsoleMonster.Interactive.TerminalHandoff
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.TerminalHandoff { OutputCapacity = value }; terminalHandoff.OutputCapacity(value);