Interface ICliAppShell
- Namespace
- ItTiger.TigerCli.Tui.Abstractions
- Assembly
- ItTiger.TigerCli.dll
Host abstraction for running TigerCli modal dialogs against a terminal, theme, viewport, and
interaction policy.
public interface ICliAppShell
Properties
Culture
UI culture used to resolve framework-owned localized strings (Yes/No,
MultiSelect hint, empty-state labels). Defaults to en-US for shells
that do not override it.
CultureInfo Culture { get; }
Property Value
InteractionMode
The interaction mode that controls whether prompts may display UI.
TigerCliInteractionMode InteractionMode { get; }
Property Value
IsFullWindow
True when the shell owns the full terminal window rather than an inline region.
bool IsFullWindow { get; }
Property Value
Theme
The theme used by controls hosted in this shell.
ITheme Theme { get; }
Property Value
Viewport
The current viewport available for modal rendering.
Size Viewport { get; }
Property Value
Methods
RunModalAsync(ICliDialog, TimeSpan?, CancellationToken)
Runs a dialog until it produces a result, the optional timeout expires, or the cancellation
token is cancelled.
Task<DialogResult> RunModalAsync(ICliDialog dialog, TimeSpan? timeout = null, CancellationToken ct = default)
Parameters
dialogICliDialogtimeoutTimeSpan?ctCancellationToken
Returns
RunModalAsync(ICliDialog, CancellationToken)
Runs a dialog until it produces a result or the cancellation token is cancelled.
Task<DialogResult> RunModalAsync(ICliDialog dialog, CancellationToken ct = default)
Parameters
dialogICliDialogctCancellationToken