euv-core 0.48.3

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Terminal host operating mode distinguishing interactive PTY TUI from static/pipe CLI execution.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum TerminalHostMode {
    /// Automatically selects `InteractiveTui` when attached to a live TTY and `StaticCli` when piped.
    #[default]
    Auto,
    /// Full-screen interactive PTY terminal UI with raw input, alternate screen, and resize handling.
    InteractiveTui,
    /// Non-interactive static/pipe CLI emitting clean stdout/stderr text and exit code without an event loop.
    StaticCli,
}

/// Detected ANSI color depth supported by the attached terminal emulator.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum TerminalColorCapability {
    /// Monochrome / piped output with zero ANSI color escapes (`NO_COLOR` or non-TTY).
    #[default]
    None,
    /// Standard 16-color ANSI SGR palette.
    Ansi16,
    /// Extended 256-color xterm SGR palette.
    Ansi256,
    /// Full 24-bit RGB truecolor (`38;2;r;g;b`).
    TrueColor,
}

/// Target output stream used by static/pipe CLI host writes.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum TerminalStreamKind {
    /// Standard program result stream (`stdout`).
    #[default]
    Stdout,
    /// Diagnostics and error stream (`stderr`).
    Stderr,
}