Problem

When using Ghostty, SSH sessions look like shit.

Solution

Export the term info to the remote server:

    infocmp -x xterm-ghostty | ssh YOUR-SERVER -- tic -x -