euv-core 0.47.1

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
/// Default terminal width in character columns when PTY size cannot be queried.
pub const TERMINAL_DEFAULT_COLS: u16 = 80;

/// Default terminal height in character rows when PTY size cannot be queried.
pub const TERMINAL_DEFAULT_ROWS: u16 = 24;

/// Default logical width in pixels per terminal character cell.
pub const TERMINAL_DEFAULT_CELL_WIDTH: f32 = 8.0;

/// Default logical height in pixels per terminal character cell.
pub const TERMINAL_DEFAULT_CELL_HEIGHT: f32 = 16.0;

/// Default vertical pixel delta per terminal SGR mouse scroll wheel tick.
pub const TERMINAL_WHEEL_SCROLL_STEP_PX: f32 = 40.0;

/// ANSI sequence enabling the terminal alternate screen buffer.
pub const TERMINAL_SEQ_ENTER_ALT_SCREEN: &str = "\x1b[?1049h";

/// ANSI sequence restoring the primary terminal screen buffer.
pub const TERMINAL_SEQ_LEAVE_ALT_SCREEN: &str = "\x1b[?1049l";

/// ANSI sequence hiding the terminal hardware cursor.
pub const TERMINAL_SEQ_HIDE_CURSOR: &str = "\x1b[?25l";

/// ANSI sequence restoring terminal hardware cursor visibility.
pub const TERMINAL_SEQ_SHOW_CURSOR: &str = "\x1b[?25h";

/// ANSI sequence enabling SGR 1006 extended mouse tracking and button-event motion.
pub const TERMINAL_SEQ_ENABLE_MOUSE: &str = "\x1b[?1000h\x1b[?1002h\x1b[?1006h";

/// ANSI sequence disabling SGR 1006 extended mouse tracking.
pub const TERMINAL_SEQ_DISABLE_MOUSE: &str = "\x1b[?1006l\x1b[?1002l\x1b[?1000l";

/// ANSI sequence enabling xterm bracketed paste mode.
pub const TERMINAL_SEQ_ENABLE_PASTE: &str = "\x1b[?2004h";

/// ANSI sequence disabling xterm bracketed paste mode.
pub const TERMINAL_SEQ_DISABLE_PASTE: &str = "\x1b[?2004l";

/// ANSI SGR full style reset sequence.
pub const TERMINAL_SEQ_RESET_SGR: &str = "\x1b[0m";

/// Canonical host vendor string reported by interactive PTY TUI sessions.
pub const TERMINAL_VENDOR_TUI: &str = "terminal-tui";

/// Canonical host vendor string reported by non-interactive static/pipe CLI sessions.
pub const TERMINAL_VENDOR_CLI: &str = "terminal-cli";

/// Standard Unix `STDIN_FILENO` file descriptor.
pub(crate) const UNIX_STDIN_FD: i32 = 0;

/// Standard Unix `STDOUT_FILENO` file descriptor.
pub(crate) const UNIX_STDOUT_FD: i32 = 1;

/// Standard Unix `STDERR_FILENO` file descriptor.
pub(crate) const UNIX_STDERR_FD: i32 = 2;

/// Environment variable disabling ANSI color output per the `no-color.org` convention.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_NO_COLOR: &str = "NO_COLOR";

/// Environment variable advertising 24-bit truecolor terminal support.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_COLORTERM: &str = "COLORTERM";

/// Environment variable specifying terminal type (`xterm-256color`, `dumb`, etc.).
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_TERM: &str = "TERM";

/// Environment variable fallback for terminal column count.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_COLUMNS: &str = "COLUMNS";

/// Environment variable fallback for terminal row count.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_LINES: &str = "LINES";

/// Substring identifying 24-bit truecolor capability in `COLORTERM`.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_TRUECOLOR: &str = "truecolor";

/// Substring identifying 24-bit RGB capability in `COLORTERM`.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_24BIT: &str = "24bit";

/// Substring identifying 256-color capability in `TERM`.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_256COLOR: &str = "256color";

/// Value identifying a non-interactive dumb terminal in `TERM`.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_DUMB: &str = "dumb";

/// Default initial route path for terminal host sessions.
pub(crate) const TERMINAL_DEFAULT_ROUTE: &str = "/";

/// Error diagnostic when terminal storage is unsupported in stream-only mode.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ERR_TERMINAL_IO_WRITE: &str = "terminal stream write failed";

/// Error diagnostic when terminal broken pipe terminates CLI output.
pub(crate) const ERR_TERMINAL_BROKEN_PIPE: &str = "terminal output pipe closed by consumer";

/// Bracketed paste opening CSI marker bytes (`\x1b[200~`).
pub(crate) const PASTE_START_BYTES: &[u8] = b"\x1b[200~";

/// Bracketed paste closing CSI marker bytes (`\x1b[201~`).
pub(crate) const PASTE_END_BYTES: &[u8] = b"\x1b[201~";

/// VT CSI introducer byte (`[`).
pub(crate) const VT_BYTE_LBRACKET: u8 = b'[';

/// VT SS3 introducer byte (`O`).
pub(crate) const VT_BYTE_SS3_O: u8 = b'O';

/// VT cursor up final byte (`A`).
pub(crate) const VT_BYTE_UP: u8 = b'A';

/// VT cursor down final byte (`B`).
pub(crate) const VT_BYTE_DOWN: u8 = b'B';

/// VT cursor right final byte (`C`).
pub(crate) const VT_BYTE_RIGHT: u8 = b'C';

/// VT cursor left final byte (`D`).
pub(crate) const VT_BYTE_LEFT: u8 = b'D';

/// VT home final byte (`H`).
pub(crate) const VT_BYTE_HOME: u8 = b'H';

/// VT end final byte (`F`).
pub(crate) const VT_BYTE_END: u8 = b'F';

/// VT reverse-tab final byte (`Z`).
pub(crate) const VT_BYTE_BACKTAB: u8 = b'Z';

/// VT tilde-delimited special key final byte (`~`).
pub(crate) const VT_BYTE_TILDE: u8 = b'~';

/// VT SGR mouse parameter prefix byte (`<`).
pub(crate) const VT_BYTE_SGR_PREFIX: u8 = b'<';

/// VT SGR mouse press/motion final byte (`M`).
pub(crate) const VT_BYTE_SGR_PRESS: u8 = b'M';

/// VT SGR mouse release final byte (`m`).
pub(crate) const VT_BYTE_SGR_RELEASE: u8 = b'm';

/// Lowercase ASCII `'a'` base byte for Ctrl-letter decoding.
pub(crate) const VT_BYTE_LOWER_A: u8 = b'a';

#[cfg(unix)]
pub(crate) const UNIX_TCSANOW: i32 = 0;

#[cfg(unix)]
pub(crate) const UNIX_SIGWINCH: i32 = 28;

#[cfg(unix)]
pub(crate) const UNIX_POLLIN: i16 = 0x0001;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TIOCGWINSZ: usize = 0x4008_7468;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TIOCGWINSZ: usize = 0x5413;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TERMIOS_IFLAG_RAW_MASK: u64 = 0x0332;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TERMIOS_OFLAG_OPOST: u64 = 0x0001;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TERMIOS_CFLAG_CS8: u64 = 0x0300;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TERMIOS_LFLAG_RAW_MASK: u64 = 0x0598;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TERMIOS_VMIN_IDX: usize = 16;

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
pub(crate) const UNIX_TERMIOS_VTIME_IDX: usize = 17;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TERMIOS_IFLAG_RAW_MASK: u32 = 0x0532;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TERMIOS_OFLAG_OPOST: u32 = 0x0001;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TERMIOS_CFLAG_CS8: u32 = 0x0030;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TERMIOS_LFLAG_RAW_MASK: u32 = 0x804B;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TERMIOS_VMIN_IDX: usize = 6;

#[cfg(any(target_os = "linux", target_os = "android"))]
pub(crate) const UNIX_TERMIOS_VTIME_IDX: usize = 5;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_STD_INPUT_HANDLE: u32 = 0xFFFF_FFF6;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_STD_OUTPUT_HANDLE: u32 = 0xFFFF_FFF5;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_STD_ERROR_HANDLE: u32 = 0xFFFF_FFF4;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_FILE_TYPE_CHAR: u32 = 0x0002;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_VIRTUAL_TERMINAL_PROCESSING: u32 = 0x0004;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_VIRTUAL_TERMINAL_INPUT: u32 = 0x0200;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_WINDOW_INPUT: u32 = 0x0008;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_MOUSE_INPUT: u32 = 0x0010;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_LINE_INPUT: u32 = 0x0002;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_ECHO_INPUT: u32 = 0x0004;

#[cfg(target_os = "windows")]
pub(crate) const WIN32_ENABLE_PROCESSED_INPUT: u32 = 0x0001;