TerminalInteractionOptions Properties
ClassProperties2 members
Options for displaying a caller-owned terminal in an interaction dialog.
Gets or sets the optional dialog title. No title is displayed by default.
public string? Title { get; set; } Gets or sets optional asynchronous work to run while the terminal dialog is displayed.
public Func<TerminalContext, Task>? Work { get; set; }Remarks
Successful completion closes the dialog. User or external cancellation signals
TerminalContext.CancellationToken and the prompt waits for the callback to finish. Exceptions propagate from IInteractionService.PromptTerminalAsync after the dialog is removed. Without work, the dialog waits for explicit completion or cancellation, not for terminal process exit. Neither work completion nor cancellation disposes the caller-owned terminal.