/** * ANSI escape code constants for terminal parsing. * * Contains standard ANSI/VT100 escape sequences for color, styling, * and cursor control. Used by AnsiParser to detect and convert * ANSI codes to xterm.js compatible format. * * References: * - ANSI/VT100 Control Sequences: https://vt100.net/docs/vt100-ug/chapter3.html * - SGR (Select Graphic Rendition): https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters * * @module components/devenv/terminal/parsing/ansi/constants */ /** * ANSI escape sequence introducers. * * Control sequences that introduce ANSI escape codes. */ export declare const ANSI_INTRODUCERS: { /** CSI (Control Sequence Introducer) - \x1b[ */ readonly CSI: "\u001B["; /** OSC (Operating System Command) - \x1b] */ readonly OSC: "\u001B]"; /** DCS (Device Control String) - \x1bP */ readonly DCS: "\u001BP"; /** ST (String Terminator) - \x1b\\ */ readonly ST: "\u001B\\"; /** ESC prefix */ readonly ESC: "\u001B"; }; /** * ANSI SGR (Select Graphic Rendition) parameter codes. * * Text styling and color codes following CSI. */ export declare const SGR_CODES: { /** Reset all attributes */ readonly RESET: 0; /** Bold/intense */ readonly BOLD: 1; /** Faint/dim */ readonly DIM: 2; /** Italic */ readonly ITALIC: 3; /** Underline */ readonly UNDERLINE: 4; /** Blink slowly */ readonly BLINK_SLOW: 5; /** Blink rapidly */ readonly BLINK_FAST: 6; /** Inverse/reverse video */ readonly INVERSE: 7; /** Hide/conceal */ readonly HIDDEN: 8; /** Strikethrough */ readonly STRIKETHROUGH: 9; /** Default font */ readonly FONT_DEFAULT: 10; /** Bold off (not widely supported) */ readonly BOLD_OFF: 21; /** Dim off (not widely supported) */ readonly DIM_OFF: 22; /** Italic off */ readonly ITALIC_OFF: 23; /** Underline off */ readonly UNDERLINE_OFF: 24; /** Blink off */ readonly BLINK_OFF: 25; /** Inverse off */ readonly INVERSE_OFF: 27; /** Reveal */ readonly REVEAL: 28; /** Strikethrough off */ readonly STRIKETHROUGH_OFF: 29; /** Black foreground */ readonly FG_BLACK: 30; /** Red foreground */ readonly FG_RED: 31; /** Green foreground */ readonly FG_GREEN: 32; /** Yellow foreground */ readonly FG_YELLOW: 33; /** Blue foreground */ readonly FG_BLUE: 34; /** Magenta foreground */ readonly FG_MAGENTA: 35; /** Cyan foreground */ readonly FG_CYAN: 36; /** White foreground */ readonly FG_WHITE: 37; /** Default foreground color */ readonly FG_DEFAULT: 39; /** Black background */ readonly BG_BLACK: 40; /** Red background */ readonly BG_RED: 41; /** Green background */ readonly BG_GREEN: 42; /** Yellow background */ readonly BG_YELLOW: 43; /** Blue background */ readonly BG_BLUE: 44; /** Magenta background */ readonly BG_MAGENTA: 45; /** Cyan background */ readonly BG_CYAN: 46; /** White background */ readonly BG_WHITE: 47; /** Default background color */ readonly BG_DEFAULT: 49; /** Bright black (gray) foreground */ readonly FG_BRIGHT_BLACK: 90; /** Bright red foreground */ readonly FG_BRIGHT_RED: 91; /** Bright green foreground */ readonly FG_BRIGHT_GREEN: 92; /** Bright yellow foreground */ readonly FG_BRIGHT_YELLOW: 93; /** Bright blue foreground */ readonly FG_BRIGHT_BLUE: 94; /** Bright magenta foreground */ readonly FG_BRIGHT_MAGENTA: 95; /** Bright cyan foreground */ readonly FG_BRIGHT_CYAN: 96; /** Bright white foreground */ readonly FG_BRIGHT_WHITE: 97; /** Bright black (gray) background */ readonly BG_BRIGHT_BLACK: 100; /** Bright red background */ readonly BG_BRIGHT_RED: 101; /** Bright green background */ readonly BG_BRIGHT_GREEN: 102; /** Bright yellow background */ readonly BG_BRIGHT_YELLOW: 103; /** Bright blue background */ readonly BG_BRIGHT_BLUE: 104; /** Bright magenta background */ readonly BG_BRIGHT_MAGENTA: 105; /** Bright cyan background */ readonly BG_BRIGHT_CYAN: 106; /** Bright white background */ readonly BG_BRIGHT_WHITE: 107; }; /** * ANSI regex patterns for detection and parsing. */ export declare const ANSI_PATTERNS: { /** CSI sequence: \x1b[ followed by parameters and final character */ readonly CSI_SEQUENCE: RegExp; /** OSC sequence: \x1b] followed by content and ST */ readonly OSC_SEQUENCE: RegExp; /** SGR parameters (numeric codes within CSI) */ readonly SGR_PARAMS: RegExp; /** Complete ANSI escape sequence */ readonly ANSI_ESCAPE: RegExp; /** Text attributes (bold, dim, italic, underline) */ readonly TEXT_ATTRIBUTES: RegExp; /** Color codes (30-37, 40-47, 90-97, 100-107) */ readonly COLOR_CODES: RegExp; }; /** * ANSI to xterm.js color mapping. * * Maps standard ANSI color codes (0-15) to xterm.js color indices. */ export declare const ANSI_COLOR_MAP: Record; /** * ANSI text modifier names. * * Maps SGR modifier codes to human-readable names. */ export declare const ANSI_MODIFIERS: Record; /** * Synthwave theme ANSI to hex color mapping. * * Maps ANSI color codes to Synthwave Industrial Dark theme colors * from Terminal.theme.ts. Used for colorizing logs with proper * design system colors. */ export declare const SYNTHWAVE_ANSI_COLORS: Record; /** * Log level to ANSI color mapping. * * Maps log levels to their corresponding ANSI color codes for * terminal display with proper colorization. */ export declare const LOG_LEVEL_ANSI_COLORS: Record; //# sourceMappingURL=ansi.constants.d.ts.map