Terminal Compatibility Issue with xterm-ghostty #4268
|
When using Ghostty to connect to remote hosts, commands like clear fail because the terminal type xterm-ghostty is not recognized. as shown below SolutionThis can be fixed by setting the $TERM variable to a supported type like xterm-256color. 1. Temporary Fix (Per Session): 2. Permanent Fix: |
Answered by
mitchellh
Jan 1, 2025
Replies: 2 comments 4 replies
2 replies
Answer selected by
mitchellh
|
You could also conditionally set the TERM to xterm-color256 for ghostty in the client ~/.bashrc, like so: Slightly cleaner as it only overwrites the TERM id when accessing with ghostty and not force other terminal emulators forced to xterm-color256. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

https://ghostty.org/docs/help/terminfo