Having problems getting delete (aka. “forward delete”) working in Terminal? Setup an .inputrc file with Terminal’s settings.
Create a file in your home called .inputrc and place the following into it:
“\e[3~”: delete-char
If you have a preference for the backspace/erase character, you can change that as well:
^?: backward-delete-char
To get that “^?” character you’ll need to first press Ctl-V and then press the Delete key. Whatever the key is currently set to will be inserted as a control code.
If you search for either “delete-char” or “backward-delete-char” in the Bash manual page you’ll get a list of even more goodies to change in the same way.
I found that my .inputrc already contained
"\e[3~": forward-deleteprobably from the last time I tried to get this working. Replaced it with delete-char and it works fine. Cheers!