Export wrapTextWithAnsi utility and add handleInput docs

- Export wrapTextWithAnsi from tui package
- Add 'Handling Input' section to README with key detection example
- Document wrapTextWithAnsi in utilities section
This commit is contained in:
Mario Zechner 2025-12-30 23:28:38 +01:00
parent 1d3203fd3d
commit 71cbae6371
3 changed files with 46 additions and 2 deletions

View file

@ -7,6 +7,7 @@
- `isShiftCtrlO()` key detection function for Shift+Ctrl+O (Kitty protocol)
- `isShiftCtrlD()` key detection function for Shift+Ctrl+D (Kitty protocol)
- `TUI.onDebug` callback for global debug key handling (Shift+Ctrl+D)
- `wrapTextWithAnsi()` utility now exported (wraps text to width, preserving ANSI codes)
### Changed