mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-30 16:45:44 +00:00
Renames `ReadonlyStream` to `TerminalStream` and introduces an effects-based callback system so that the stream handler can optionally respond to queries and side effects (bell, title changes, device attributes, device status, size reports, XTVERSION, ENQ, DECRQM, kitty keyboard queries). The default behavior is still read-only, callers have to opt-in to setting callbacks to function pointers. This doesn't handle every possible side effect yet, e.g. this doesn't include clipboards, pwd reporting, and others. But this covers the important ones. This PR is Zig only, the C version of this will come later.