Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make the forward delete key work in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make the forward delete key work in Terminal
Authored by: DylanMuir on Jun 12, '05 01:20:07PM
A better way to do this is by using ~/.inputrc.

This file sets options for the readline library, used by bash and other terminal programs to handle keyboard input. If you include the line

"\e[3~": delete-char

in ~/.inputrc, then the default Terminal.app settings will work perfectly, and you'll be able to delete to your heart's content without loggin out inapporopriately.

[ Reply to This | # ]

Make the forward delete key work in Terminal
Authored by: googoo on Jun 13, '05 02:25:41PM
I think there should be a backslash before the "e" in your .inputrc command. It should read

"\e[3~": delete-char

Tcsh users try adding this line to your .login file instead

bindkey "\e[3~" delete-char

-Mark

[ Reply to This | # ]

ARG!!! That #%@ backslash
Authored by: googoo on Jun 13, '05 02:30:25PM
The same thing happened to my backslashes! For bash users, the .inputrc file should have the line

"\e[3~": delete-char

and for tcsh users, the .login (or appropriate initialization file) should have the line

bindkey "\e[3~" delete-char

-Mark

[ Reply to This | # ]

ARG!!! That #%@ backslash
Authored by: googoo on Jun 13, '05 02:32:46PM

I give up. The e-characters in both of the commands in my previous two comments in this thread should be preceded by backslash characters.

-Mark



[ Reply to This | # ]
ARG!!! That #%@ backslash
Authored by: DylanMuir on Jun 14, '05 02:49:13AM

What's the use of a code tag that doesn't preserve code?



[ Reply to This | # ]
ARG!!! That #%@ backslash
Authored by: robg on Feb 22, '06 04:38:42PM

Try the code tag in square brackets, as explained in the red text above the text area.

-rob.



[ Reply to This | # ]