Table of Contents

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

CultureInfo

InteractionMode

The interaction mode that controls whether prompts may display UI.
TigerCliInteractionMode InteractionMode { get; }

Property Value

TigerCliInteractionMode

IsFullWindow

True when the shell owns the full terminal window rather than an inline region.
bool IsFullWindow { get; }

Property Value

bool

Theme

The theme used by controls hosted in this shell.
ITheme Theme { get; }

Property Value

ITheme

Viewport

The current viewport available for modal rendering.
Size Viewport { get; }

Property Value

Size

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

dialog ICliDialog
timeout TimeSpan?
ct CancellationToken

Returns

Task<DialogResult>

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

dialog ICliDialog
ct CancellationToken

Returns

Task<DialogResult>