1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/// ANSI escape sequence entering the alternate screen buffer.
pub const ANSI_ENTER_ALT_SCREEN: &str = "\x1b[?1049h";
/// ANSI escape sequence leaving the alternate screen buffer.
pub const ANSI_LEAVE_ALT_SCREEN: &str = "\x1b[?1049l";
/// ANSI escape sequence hiding the terminal cursor.
pub const ANSI_HIDE_CURSOR: &str = "\x1b[?25l";
/// ANSI escape sequence restoring terminal cursor visibility.
pub const ANSI_SHOW_CURSOR: &str = "\x1b[?25h";
/// ANSI escape sequence resetting all SGR visual attributes.
pub const ANSI_RESET_STYLE: &str = "\x1b[0m";
/// ANSI escape sequence clearing the entire screen and homing the cursor.
pub const ANSI_CLEAR_AND_HOME: &str = "\x1b[2J\x1b[H";
/// ANSI escape sequence enabling raw bracketed paste tracking.
pub const ANSI_ENTER_RAW_MODES: &str = "\x1b[?2004h";
/// ANSI escape sequence disabling raw bracketed paste and mouse tracking.
pub const ANSI_LEAVE_RAW_MODES: &str = "\x1b[?2004l\x1b[?1000l";
/// DEC Mode 2026 begin synchronized update sequence preventing partial-frame tearing.
pub const ANSI_SYNC_UPDATE_BEGIN: &str = "\x1b[?2026h";
/// DEC Mode 2026 end synchronized update sequence committing the batched frame atomically.
pub const ANSI_SYNC_UPDATE_END: &str = "\x1b[?2026l";
/// Maximum inline UTF-8 tail bytes retained per `TerminalCell` for Extended Grapheme Clusters.
pub const TERMINAL_CELL_TAIL_CAPACITY: usize = 28;
pub const ANSI_CSI_PREFIX: &str = "\x1b[";
pub const ANSI_CURSOR_HOME: &str = "\x1b[H";
pub const ANSI_CURSOR_RIGHT_ONE: &str = "\x1b[C";
pub const ANSI_BOLD_CODE: &str = ";1";
pub const ANSI_REVERSE_CODE: &str = ";7";
pub const ANSI_UNDERLINE_CODE: &str = ";4";
pub const ANSI_FG_TRUECOLOR_PREFIX: &str = ";38;2;";
pub const ANSI_BG_TRUECOLOR_PREFIX: &str = ";48;2;";
pub const ANSI_FG_TRUECOLOR_HEAD: &str = "38;2;";
pub const ANSI_BG_TRUECOLOR_HEAD: &str = "48;2;";
pub const TERMINAL_CANVAS_FALLBACK: &str = "[Canvas/Viewport]";
pub const TERMINAL_IMAGE_FALLBACK_PREFIX: &str = "[Image: ";
pub const TERMINAL_CANVAS_FALLBACK_PREFIX: &str = "[Canvas: ";
pub const TERMINAL_IMAGE_DIM_PREFIX: &str = "[Image ";
pub const TERMINAL_BOX_TOP_LEFT: char = '┌';
pub const TERMINAL_BOX_TOP_RIGHT: char = '┐';
pub const TERMINAL_BOX_BOTTOM_LEFT: char = '└';
pub const TERMINAL_BOX_BOTTOM_RIGHT: char = '┘';
pub const TERMINAL_BOX_HORIZONTAL: char = '─';
pub const TERMINAL_BOX_VERTICAL: char = '│';
pub const TERMINAL_SCROLL_THUMB: char = '█';
pub const TERMINAL_SCROLL_TRACK: char = '│';
pub const TERMINAL_MIN_COLS: u16 = 1;
pub const TERMINAL_MIN_ROWS: u16 = 1;
pub const TERMINAL_ROW_GAP: u16 = 1;
pub const TERMINAL_SCROLL_STEP_PX: f32 = 24.0;
pub const TERMINAL_COALESCE_GAP_MAX: u16 = 2;
pub const TERMINAL_FNV_OFFSET_BASIS: u64 = 0xCBF2_9CE4_8422_2325;
pub const TERMINAL_FNV_PRIME: u64 = 0x0000_0100_0000_01B3;
pub const TERMINAL_ASCII_ZERO: u8 = b'0';
pub const TERMINAL_NEWLINE_BYTES: & = b"\n";
pub const TERMINAL_BACKPRESSURE_MAX_RETRIES: usize = 16;
pub const TERMINAL_CLI_DEFAULT_BATCH_LIMIT: usize = 65_536;
pub const ERR_TERMINAL_WRITE_ZERO: &str = "terminal writer accepted zero bytes";