Skip to main content

Crate foundry_tui

Crate foundry_tui 

Source
Expand description

Shared terminal UI utilities for Foundry.

Structs§

TerminalGuard
Handles terminal setup and teardown for interactive TUIs.
TuiEnvironment
Runtime environment details used to decide whether a TUI can run interactively.

Enums§

TuiFallbackReason
Why an interactive TUI should not be opened.
TuiMode
The resolved mode for a requested TUI run.

Traits§

TuiApp
An interactive terminal application.

Functions§

run_app
Runs an interactive terminal application with the default Foundry terminal setup.
run_app_if_interactive
Runs an app only when the current environment supports an interactive TUI.
run_app_inner 🔒
tui_mode
Detects whether a requested TUI should run interactively or fall back to line output.
with_terminal
Runs a closure with the default Foundry terminal setup.

Type Aliases§

CrosstermTerminal
The default terminal backend used by Foundry TUIs.
PanicHandler 🔒