Go bindings for libghostty-vt. pkg.go.dev/go.mitchellh.com/libghostty
ghostty

render: make cell style snapshots allocation-free master

RenderCellStyle used pointer fields for foreground and background colors that pointed back into storage owned by the same struct. Reusing a single style value in a per-cell render loop still forced the destination to escape, producing heap allocations for heavily styled output. Store resolved colors as values with explicit presence booleans instead and make StyleInto fill that shape directly. The binding helper now returns its snapshot by value rather than writing through a Go pointer, so cgo does not force a temporary snapshot allocation on every call.


Author Mitchell Hashimoto Date Commit bacf735d Parent e2f7f6c3 Change ID tvpnursv