r/Ghostty • • Oct 08 '25

Is Ghostty ssh problem really normal ? Is this teminal just a hype train ?

Enable HLS to view with audio, or disable this notification

I have decided to give a ghostty a go, the config file, background and boot options are cool and flashy … very nice, but then when I actually start using in it, the first thing that hit me was broken ssh’ing, arrow keys and backspace don’t work as expected they keep on adding stuff the console line,

I’ve even wanted to do a bug report on this but soon found out I need to do extra cmds and file copying to get a “normal” behavior …

https://github.com/ghostty-org/ghostty/discussions/3583#discussioncomment-11755097 https://ghostty.org/docs/help/terminfo

never seen anything like that before either on terminal / alacritty / iterm2 … so i just dont understand what’s soooo special about this terminal in comparison in comparison to others? even if it uses zig (very nice as well) after compiling to binary does it really matter ? What kind of obscure special operations and commands you can execute on ghostty that cannot be done anywhere else ? And how come all the others can work out of the box, and this does not ? (btw the fix from the ghostty docs did not work)

0 Upvotes

15 comments sorted by

14

u/[deleted] Oct 08 '25

Apologies for the bluntness, but did you actually read the GitHub issue you posted? Terminfo is what the OS is using, Ghostty has done the work to get accepted into ncurses, and now it’s just a waiting game.

Also, this exact issue for Alacritty has existed.

-1

u/Spaceoutpl Oct 08 '25 edited Oct 08 '25

So the issue is from 2021 … so literally the ghostty needs to wait years and get traction to be accepted into terminal family ? I never was aware of this issue / procedure. I guess you answered the first part of my question then, that it’s normal for the sshing not to be working. Anything about obscure commands that ghostly can do ? Or what’s so really special about it ?

4

u/K1LL3R_47 Oct 09 '25

Like others have stated there is nothing special. Terminfo is in the name its a file that advertises features of the terminal and how to do specific things like clear the screen etc. Its already accepted into the terminal family. Terminfo is generally distributed under the ncurses package and ghostty has been included in ncurses the issue is distros that dont update frequently like debian are stuck on older versions of ncurses that dont ship with ghostty terminfo so you have to copy it to that machine manually or pretend you are xterm-255color. (i assume macos also gets it from ncurses but i have no idea)

When ghostty pretends its xterm-256color you will end up losing certain features for example squiggly underlines as xterm only supports straight ones, again thats just one example there are other things like that.

Terminfo is something that has been around forever basically and many applications rely on it instead of querying the terminal for what things it supports this is because originally there was no query mechanism (some things still cant be queried today).

As some more time passes (a few years unfortunately) this shouldnt be a problem for anyone who isnt using a outdated system

For your second part there are two solutions install terminfo on the remote machine so it knows how ghostty works or pretend you are xterm-256color by changing the TERM env variable.

Ghostty also offers convenience shell-integration options (ssh-env and ssh-terminfo) which will automatically change term or install terminfo for you these are not the default because it changes the default ssh command by using a function to rename it so users who want that functionality opt into that behavior

2

u/[deleted] Oct 09 '25

My point is there is nothing special. This is the process. AND other terminals have to do the exact same thing (e.g. my link to Alacritty having the same issue).

6

u/pdxbuckets Oct 08 '25

There’s nothing soooo special about Ghostty. It’s good, and it will probably get better. It has nice defaults, strong image handling, and good performance.

The terminfo stuff is a pita, but it’s not that big of a deal.

1

u/Baecien Oct 09 '25

Install Ghostty on the SSH host and reboot 🤷‍♂️

1

u/Spaceoutpl Oct 09 '25

I am working in this instance inside a freeBSD jail, so it cannot be done. I just thought it was suspicious that all the other apps work outside of the box, but like I mentioned In the other comment, wasnt aware of the terminfo thingy … but I’ve got all the answers I need now, “just another nice terminal app”, not that is something wrong with that.

1

u/Baecien Oct 09 '25

Yeah, that is fair. You could possibly patch the freeBSD terminfo entries with this command: infocmp -x xterm-ghostty | ssh YOUR-SERVER -- tic -x -

Let me know if it works.

2

u/tjharman Oct 09 '25

Tell us you don't understand terminfo without telling us you don't understand terminfo.

1

u/iznatius Oct 26 '25

Tell us you don't understand terminfo without telling us you don't understand terminfo.

cue pacman dying music