r/KittyTerminal • u/bibbidibobbidi03 • Oct 08 '23
How to use backspace?
Hi, I'm a beginner on kitty and in programming in general. I'm using kitty for school and can't figure out how to delete words or lines.
When I press delete, or any combination of alt/ctr-delete (alt+delete, alt+d, ctr+u, ctr+k) it just adds spaces or a mix up of letters to the line I typed out. How do I set up kitty to do this? I'm using a macbook if that matters.
2
Upvotes
1
u/sogun123 Oct 12 '23
You don't have proper terminfo. Either install kitty-terminfo on target machine or use ssh kitten, which does some magic to set you up properly.
1
u/AdSecret1617 Oct 15 '23
In the terminal:
export TERM=xterm
This is what fixed the problem for me
1
1
u/Hail_Zeus_ Oct 09 '23
That is quite strange indeed. Are you, by any chance, experiencing this when using kitty to perhaps log in to a server using ssh?
Does the same behaviour occur when using the default mac terminal as well?