points by awkwardleon 2 days ago | 0 comments
Very likely due to ghostty setting TERM to xterm-ghostty and your destination not recognizing it. Quick temp fix is using the wrapper (ghostty +ssh), see <https://ghostty.org/docs/features/ssh>. More permanently, copy terminfo to the remote machine, see <https://ghostty.org/docs/features/ssh>.
[–] iknowstuff 2 days ago
Yea unfortunately eg Ubuntu’s bashrc has a script which will make it drop colors regardless of the presence of ghostty’s terminfo. Its `screen` will also fail, so e.g. it will refuse to upgrade to a new distro release.
Lots of jank due to this custom terminfo.
[–] mprovost 2 days ago
Every terminfo is custom, to the terminal it applies to. It's just that most entries are 20+ years old and even glacial distros have converged on some version of the database that mostly worked, until the recent resurgence of interest in actually writing new terminal software.
[–] seanw444 2 days ago
You can also just add this to your SSH config to get the typical functionality working:
Host ...
SetEnv TERM=xterm-256color
[–] kccqzy 2 days ago
[–] rocmcd 2 days ago
Host * SetEnv TERM=xterm-256color
[–] spurgu 13 hours ago
[–] exographicskip 1 day ago
[–] nasretdinov 1 day ago
[–] adrian_b 2 days ago
Otherwise, there is no need to install anything, you should just set the environment variable TERM in the remote computer to one of the xterm variants and then modern terminal emulators like kitty or ghostty will still work fine, but of course only as long as you use the xterm-compatible subset of their features.
[–] mprovost 2 days ago
[–] jcgl 1 day ago
[–] otterley 2 days ago
[–] skydhash 2 days ago
[–] anamexis 1 day ago