Maybe as an SSH app? See https://snakes.run for a recent example.
I don't have specific references for you, but perhaps you could look into how old-school roguelikes packaged their software for distribution. Particularly ones that made the jump to Steam or Itch?
somehwere else in this thread this project was mentioned (uses libghostty): https://github.com/weedonandscott/trolley
that might be a viable approach for you
Re:Ghostty – Terminal Emulator
by hesdeadjim on Monday March 02, 2026 @11:46AM
(#47220419)
Never heard of this, thank you!
I’ve been trying to figure out how I could actually help him distribute it and I keep coming back to the best option being to wrap his programs terminal output into a host process that can emulate and render it. It seems that the lib Ghostty might be perfect for the former, but not quite yet on the latter?