localfirstai/bettertui★ 1

feat(core): fill widget gaps — interactivity, syntax highlighting, ne…

Mergedopened · merged · #7

About localfirstai/bettertui

A high-performance terminal runtime for building modern terminal applications with Rust and TypeScript.

The change

…w widgets • ScrollBox: keyboard scroll (up/down/pageup/pagedown/home/end), scrollX/Y flags, onScroll cb • ScrollBar: keyboard control, onChange cb, track+thumb rendering, setPosition clamp • Input: cursor movement (left/right/word-jump/home/end/ctrl+a/ctrl+e/ctrl+k/ctrl+u) • Textarea: line-aware navigation, undo/redo (ctrl+z/ctrl+y) via NativeTextEngine • Code: wire Rust tree-sitter syntax highlighter via new highlight_code NAPI export • napi.rs: add highlight_code() binding using global_highlighter() • binding.ts: call native highlightCode with graceful fallback • New widgets: ProgressBar, Spinner, Badge, Divider, List, Tree, Dialog • shared/widget.types.ts: add types for all new widgets • 650/650 TypeScript tests passing