View previous topic :: View next topic |
Author |
Message |
Szplug n00b
Joined: 03 Nov 2002 Posts: 33 Location: Raleigh North Carolina
|
Posted: Sat Apr 26, 2003 10:55 pm Post subject: del key produces tilde (~) instead of deleting |
|
|
Hi,
How do you set konsole to make the <del> key delete forward? Mine just produces a '~'.
Thanks! |
|
Back to top |
|
|
vdboor Guru
Joined: 03 Dec 2003 Posts: 592 Location: The Netherlands
|
Posted: Tue Dec 30, 2003 8:32 pm Post subject: |
|
|
Does anyone know how I can solve this thing? I seam to have the same problem. _________________ The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer
[ screenies | Coding on KMess ] |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2998 Location: Bay Area, CA
|
Posted: Tue Dec 30, 2003 9:57 pm Post subject: |
|
|
try this line in your ~/.inputrc file:
#######################
"\M-[3~": delete-char
####################### |
|
Back to top |
|
|
vdboor Guru
Joined: 03 Dec 2003 Posts: 592 Location: The Netherlands
|
Posted: Wed Jan 07, 2004 9:19 am Post subject: |
|
|
devsk wrote: | try this line in your ~/.inputrc file:
#######################
"\M-[3~": delete-char
####################### |
Thanks a lot. I've also discovered that the problem disapeared when I removed my ~/.inputrc. (because it overruled /etc/inputrc) This might be a good thing to know, because /etc/inputrc has a lot of other goodies too.
.. sorry for bumping this thread after 2 weeks.. _________________ The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer
[ screenies | Coding on KMess ] |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Tue Jan 27, 2004 3:38 pm Post subject: |
|
|
Thanks a lot, this solved my problem as well.
I had just created an .inputrc file to disable the bell, but after this had the same problem with the DEL key.
file now looks like:
Code: | # ~/.inputrc
"\M-[3~": delete-char
set bell-style none
|
_________________ Can't think about anything funny to place here |
|
Back to top |
|
|
defrost n00b
Joined: 19 Mar 2003 Posts: 3 Location: Denmark
|
Posted: Wed Jun 09, 2004 8:59 am Post subject: Import inputrc settings to .inputrc |
|
|
vdboor wrote: | devsk wrote: | try this line in your ~/.inputrc file:
#######################
"\M-[3~": delete-char
####################### |
Thanks a lot. I've also discovered that the problem disapeared when I removed my ~/.inputrc. (because it overruled /etc/inputrc) This might be a good thing to know, because /etc/inputrc has a lot of other goodies too.
|
Another (nicer ?) way to solve the problem is to have this in your .inputrc:
Code: |
$include /etc/inputrc
# Your personal settings goes here
set completion-ignore-case on
|
_________________ --
Martin |
|
Back to top |
|
|
Szplug n00b
Joined: 03 Nov 2002 Posts: 33 Location: Raleigh North Carolina
|
Posted: Mon Jul 26, 2004 9:51 pm Post subject: That didn't work for me but this did: |
|
|
Putting this in my .tcshrc (or .cshrc if you use csh)
Code: | if ($term == "xterm" || $term == "vt100" \
|| $term == "vt102" || $term !~ "con*") then
# bind keypad keys for console, vt100, vt102, xterm
bindkey "\e[1~" beginning-of-line # Home
bindkey "\e[7~" beginning-of-line # Home rxvt
bindkey "\e[2~" overwrite-mode # Ins
bindkey "\e[3~" delete-char # Delete
bindkey "\e[4~" end-of-line # End
bindkey "\e[8~" end-of-line # End rxvt
endif
|
Of course the only relevant part is the Delete line.
Because the DEL key has always worked properly for me as root which on my system uses Bash (with identical stty -a settings, and a common /etc/inputrc (no ~/.inputrc) ), perhaps some Gentoo [t]csh initialization messes it up. |
|
Back to top |
|
|
|