|
mac geekeryGet your geek on. |
Delete in TerminalNovember 11, 2004 - 6:02am
Having problems getting delete (aka. “forward delete”) working in Terminal? Setup an Create a file in your home called “\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. About Adam Knight |
|
||||
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!