euv-core 0.48.2

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
use super::*;

/// Output mode controlling whether `TerminalRenderer` emits ANSI TUI diffs or plain UTF-8 CLI text.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum TerminalRenderMode {
    /// Interactive terminal user interface mode emitting ANSI cursor and style cell-diffs.
    #[default]
    InteractiveTui,
    /// Static CLI plain-text mode emitting clean UTF-8 lines with zero ANSI escape sequences.
    StaticPlainText,
}

/// High-level navigation outcome returned by `TerminalRenderer::handle_key`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum TerminalNavAction {
    /// Keyboard event did not trigger a terminal navigation change.
    #[default]
    Ignored,
    /// Keyboard focus moved to a new focusable scene node.
    FocusMoved(NodeId),
    /// Active scroll container offset changed via arrow navigation.
    Scrolled(i16),
    /// Currently focused interactive control was activated via Enter.
    Activated(NodeId),
    /// User requested graceful exit via Escape or Ctrl+C.
    ExitRequested,
}

/// Write outcome returned by batched TUI writer flushes and piped static CLI output helpers.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum CliWriteStatus {
    /// Output payload was written and flushed completely.
    #[default]
    Written,
    /// Downstream pipe closed cleanly (`BrokenPipe`); caller should exit gracefully without panicking.
    BrokenPipe,
    /// Another I/O write or flush error occurred; double-buffer swap was withheld and next frame will full-sync.
    IoError,
}