Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
del key produces tilde (~) instead of deleting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Szplug
n00b
n00b


Joined: 03 Nov 2002
Posts: 33
Location: Raleigh North Carolina

PostPosted: Sat Apr 26, 2003 10:55 pm    Post subject: del key produces tilde (~) instead of deleting Reply with quote

Hi,

How do you set konsole to make the <del> key delete forward? Mine just produces a '~'.

Thanks!
Back to top
View user's profile Send private message
vdboor
Guru
Guru


Joined: 03 Dec 2003
Posts: 592
Location: The Netherlands

PostPosted: Tue Dec 30, 2003 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2998
Location: Bay Area, CA

PostPosted: Tue Dec 30, 2003 9:57 pm    Post subject: Reply with quote

try this line in your ~/.inputrc file:
#######################
"\M-[3~": delete-char
#######################
Back to top
View user's profile Send private message
vdboor
Guru
Guru


Joined: 03 Dec 2003
Posts: 592
Location: The Netherlands

PostPosted: Wed Jan 07, 2004 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
smouge
n00b
n00b


Joined: 22 Jan 2003
Posts: 66
Location: Oosterhout, the Netherlands

PostPosted: Tue Jan 27, 2004 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
defrost
n00b
n00b


Joined: 19 Mar 2003
Posts: 3
Location: Denmark

PostPosted: Wed Jun 09, 2004 8:59 am    Post subject: Import inputrc settings to .inputrc Reply with quote

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
View user's profile Send private message
Szplug
n00b
n00b


Joined: 03 Nov 2002
Posts: 33
Location: Raleigh North Carolina

PostPosted: Mon Jul 26, 2004 9:51 pm    Post subject: That didn't work for me but this did: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum