Skip to content

feat: add native ghostty alternate screen and line wrapping#29

Merged
sreya merged 3 commits into
mainfrom
morewasm
Nov 16, 2025
Merged

feat: add native ghostty alternate screen and line wrapping#29
sreya merged 3 commits into
mainfrom
morewasm

Conversation

@sreya
Copy link
Copy Markdown
Contributor

@sreya sreya commented Nov 16, 2025

No description provided.

- Add ghostty_terminal_is_alternate_screen() to detect alternate buffer mode
- Add ghostty_terminal_is_row_wrapped() to detect soft-wrapped lines
- Update Ghostty WASM patch with new C header declarations and Zig implementations
- Add TypeScript wrapper methods in GhosttyTerminal class
- Add 5 comprehensive integration tests for buffer access API
- All 130 tests passing, no breaking changes
- Updated patch to include isAlternateScreen and isRowWrapped exports
- Added interactive test buttons to main demo
- Tests show real-time results with ✓/✗ indicators
WASM C booleans return as numbers (0/1), convert to proper JS booleans
using Boolean() constructor to ensure strict equality checks work correctly.
@sreya sreya merged commit b1cc03e into main Nov 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant