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
/// 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";
pub const ANSI_CSI_PREFIX: &str = "\x1b[";
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 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;