Expand description
Shared terminal UI utilities for Foundry.
Structs§
- Terminal
Guard - Handles terminal setup and teardown for interactive TUIs.
- TuiEnvironment
- Runtime environment details used to decide whether a TUI can run interactively.
Enums§
- TuiFallback
Reason - 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§
- Crossterm
Terminal - The default terminal backend used by Foundry TUIs.
- Panic
Handler 🔒