mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
Size report escape sequences were previously formatted inline in Termio.sizeReportLocked, and termio.Message carried a duplicate enum for report styles. That made the encoding logic harder to reuse and kept the style type scoped to termio. Move the encoding into terminal.size_report and export it through terminal.main. The encoder now takes renderer.Size directly and derives grid and pixel dimensions from one source of truth. termio.Message now aliases terminal.size_report.Style, and Termio writes reports via the shared encoder.