Replies: 6 comments 9 replies
-
Is this a terminfo issue? https://ghostty.org/docs/help/terminfo I can't reproduce this. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem on EndeavorOS (Arch) as I also have to press the Delete key twice in shells. Interestingly, the Delete key on my numpad works fine. I ran Kitty
Ghostty
|
Beta Was this translation helpful? Give feedback.
-
For me, the following works: rename or remove the |
Beta Was this translation helpful? Give feedback.
-
This does not seem to be related to the gtk cache, specifically, as I am on kde and have no gtk-4.0 cache directory. I get the same result as @asm0dey and I am using a us key layout on a hhkp (if that can be relevant) EDIT: the fact that the numpad delete key works makes sense, as it is not regarded as the same key internally |
Beta Was this translation helpful? Give feedback.
-
Hello again. It seems this is an issue I now have with all terminals, and it is connected to terminfo (and shell implementations, to some degree, I believe). This page sheds some light: A hacky fix for the issue with delete not working, is to map a keybind in zsh, sending a delete-char when the delete key is pressed. This seems to be an issue of tech debt from the days of physical consoles and there seems to be no real solution, except for deviating from these old standards. EDIT: Simply overriding the TERM variable, setting it to xterm-256color, solves the issue. I am assuming this is not ideal, as I have seen ghostty setting this to other values when I ssh, for example. Any thoughts? Might also be worth noting that my .terminfo only contain settings for xterm-256color, not xterm-ghostty, or whatever it is I've seen it using before. |
Beta Was this translation helpful? Give feedback.
-
someone mentioned the terminal type change method - so here is a small script to put in .zshrc to fix it in .zshrc: fix mac backspace not working in ghostty by changing terminal typeif [[ "$TERM" == "xterm-ghostty" ]]; then In .bashrc: if [ "$TERM" = "xterm-ghostty" ]; then |
Beta Was this translation helpful? Give feedback.
-
In this GIF, you can see that deleting anything with the "Delete" key is very slow: it takes 2 keystrokes for each deletion.

Also, If I type something like "Delete" and then "Space", I see a symbol like this:
ء
It doesn't happen with Backspace
Beta Was this translation helpful? Give feedback.
All reactions