mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
Phase 0 of the ink→Bun.TUI migration. Adds three new capabilities to the native TUI primitives: - TUIScreen.setAnsiText(x, y, text): feeds ANSI text through Ghostty's VT parser, interprets SGR sequences to track style, writes styled cells directly - TUIKeyReader constructor options (bracketedPaste, focusEvents, kittyKeyboard): writes mode-enabling sequences to stdout on construction, disables on close() - TUITerminalWriter inline rendering mode: uses LF instead of CUD for viewport scrolling, tracks scrollback depth, detects unreachable dirty rows for full redraw Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>