/** * Terminal I/O primitives — ANSI, CSI, DEC, ESC, OSC, SGR sequences. * * Provides a complete set of terminal escape sequence types, parsers, * generators, and a streaming ANSI parser. */ // ANSI control characters and escape sequence introducers export { BEL, C0, ESC, ESC_TYPE, isC0, isEscFinal, SEP } from './ansi.js' // CSI (Control Sequence Introducer) types, constants, and generators export { CSI, CSI_PREFIX, CSI_RANGE, CURSOR_HOME, CURSOR_LEFT, CURSOR_RESTORE, CURSOR_SAVE, CURSOR_STYLES, type CursorStyle, csi, cursorBack, cursorDown, cursorForward, cursorMove, cursorPosition, cursorTo, cursorUp, DISABLE_KITTY_KEYBOARD, DISABLE_MODIFY_OTHER_KEYS, ENABLE_KITTY_KEYBOARD, ENABLE_MODIFY_OTHER_KEYS, ERASE_DISPLAY, ERASE_LINE, ERASE_LINE_REGION, ERASE_SCREEN, ERASE_SCROLLBACK, eraseLine, eraseLines, eraseScreen, eraseToEndOfLine, eraseToEndOfScreen, eraseToStartOfLine, eraseToStartOfScreen, FOCUS_IN, FOCUS_OUT, isCSIFinal, isCSIIntermediate, isCSIParam, PASTE_END, PASTE_START, RESET_SCROLL_REGION, scrollDown, scrollUp, setScrollRegion, } from './csi.js' // DEC private mode sequences export { BSU, DBP, DEC, DFE, DISABLE_MOUSE_TRACKING, decreset, decset, EBP, EFE, ENABLE_MOUSE_TRACKING, ENTER_ALT_SCREEN, ESU, EXIT_ALT_SCREEN, HIDE_CURSOR, SHOW_CURSOR, } from './dec.js' // ESC sequence parser export { parseEsc } from './esc.js' // OSC (Operating System Command) types, parser, and generators export { _resetLinuxCopyCache, CLEAR_ITERM2_PROGRESS, CLEAR_TAB_STATUS, CLEAR_TERMINAL_TITLE, type ClipboardPath, clearTabStatus, getClipboardPath, ITERM2, LINK_END, link, linkEnd, OSC, OSC_PREFIX, osc, PROGRESS, parseOSC, parseOscColor, ST, setClipboard, supportsTabStatus, tabStatus, tmuxLoadBuffer, wrapForMultiplexer, } from './osc.js' // Streaming ANSI parser export { Parser } from './parser.js' // SGR (Select Graphic Rendition) parser export { applySGR } from './sgr.js' // Input tokenizer export { createTokenizer, type Token, type Tokenizer, } from './tokenize.js' // Semantic types for all ANSI actions export { type Action, type Color, type CursorAction, type CursorDirection, colorsEqual, defaultStyle, type EraseAction, type Grapheme, type LinkAction, type ModeAction, type NamedColor, type ScrollAction, stylesEqual, type TabStatusAction, type TextSegment, type TextStyle, type TitleAction, type UnderlineStyle, } from './types.js'