pub const TERMINAL_DEFAULT_COLS: u16 = 80;
pub const TERMINAL_DEFAULT_ROWS: u16 = 24;
pub const TERMINAL_DEFAULT_CELL_WIDTH: f32 = 8.0;
pub const TERMINAL_DEFAULT_CELL_HEIGHT: f32 = 16.0;
pub const TERMINAL_WHEEL_SCROLL_STEP_PX: f32 = 40.0;
pub const TERMINAL_SEQ_ENTER_ALT_SCREEN: &str = "\x1b[?1049h";
pub const TERMINAL_SEQ_LEAVE_ALT_SCREEN: &str = "\x1b[?1049l";
pub const TERMINAL_SEQ_HIDE_CURSOR: &str = "\x1b[?25l";
pub const TERMINAL_SEQ_SHOW_CURSOR: &str = "\x1b[?25h";
pub const TERMINAL_SEQ_ENABLE_MOUSE: &str = "\x1b[?1000h\x1b[?1002h\x1b[?1006h";
pub const TERMINAL_SEQ_DISABLE_MOUSE: &str = "\x1b[?1006l\x1b[?1002l\x1b[?1000l";
pub const TERMINAL_SEQ_ENABLE_PASTE: &str = "\x1b[?2004h";
pub const TERMINAL_SEQ_DISABLE_PASTE: &str = "\x1b[?2004l";
pub const TERMINAL_SEQ_RESET_SGR: &str = "\x1b[0m";
pub const TERMINAL_VENDOR_TUI: &str = "terminal-tui";
pub const TERMINAL_VENDOR_CLI: &str = "terminal-cli";
pub(crate) const UNIX_STDIN_FD: i32 = 0;
pub(crate) const UNIX_STDOUT_FD: i32 = 1;
pub(crate) const UNIX_STDERR_FD: i32 = 2;
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_NO_COLOR: &str = "NO_COLOR";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_COLORTERM: &str = "COLORTERM";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_TERM: &str = "TERM";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_COLUMNS: &str = "COLUMNS";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENV_LINES: &str = "LINES";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_TRUECOLOR: &str = "truecolor";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_24BIT: &str = "24bit";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_256COLOR: &str = "256color";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const TERM_VAL_DUMB: &str = "dumb";
pub(crate) const TERMINAL_DEFAULT_ROUTE: &str = "/";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ERR_TERMINAL_IO_WRITE: &str = "terminal stream write failed";
pub(crate) const ERR_TERMINAL_BROKEN_PIPE: &str = "terminal output pipe closed by consumer";
pub(crate) const PASTE_START_BYTES: &[u8] = b"\x1b[200~";
pub(crate) const PASTE_END_BYTES: &[u8] = b"\x1b[201~";
pub(crate) const VT_BYTE_LBRACKET: u8 = b'[';
pub(crate) const VT_BYTE_SS3_O: u8 = b'O';
pub(crate) const VT_BYTE_UP: u8 = b'A';
pub(crate) const VT_BYTE_DOWN: u8 = b'B';
pub(crate) const VT_BYTE_RIGHT: u8 = b'C';
pub(crate) const VT_BYTE_LEFT: u8 = b'D';
pub(crate) const VT_BYTE_HOME: u8 = b'H';
pub(crate) const VT_BYTE_END: u8 = b'F';
pub(crate) const VT_BYTE_BACKTAB: u8 = b'Z';
pub(crate) const VT_BYTE_TILDE: u8 = b'~';
pub(crate) const VT_BYTE_SGR_PREFIX: u8 = b'<';
pub(crate) const VT_BYTE_SGR_PRESS: u8 = b'M';
pub(crate) const VT_BYTE_SGR_RELEASE: u8 = b'm';
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;