mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-26 18:52:01 +00:00
The ssh wrapper previously used a separate set_ssh_terminfo function that returned a record to be merged, which result in some redundant control flow and TERM assignments. This inlines the terminfo logic and builds env/opts incrementally based on feature flags. TERM is set to a fallback early and only overridden on success, which simplifies our error handling and avoids mutable variable capture issues in closures. Lastly, warnings are now consistently written to stderr, and I made various other control flow and syntax improvements.