Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Delete key now prints ~ in Bash prompt
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Thu Aug 19, 2004 1:00 am    Post subject: Delete key now prints ~ in Bash prompt Reply with quote

Hi

I'm not sure exactly what I've done to cause this, but I just noticed that my delete key prints the tilde symbol ~ in Aterm. It's not cause by aterm though - it's something to do with Bash. Any ideas on how it happened or how I can rectify the problem?

Thanks
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Thu Aug 19, 2004 7:05 am    Post subject: Reply with quote

Do you have .inputrc in your home dir? If yes, delete it and everything will be OK. Also, you can do a search (I've seen some posts about the same problem).
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Thu Aug 19, 2004 11:04 am    Post subject: Reply with quote

Thanks for the reply, however, I don't have .inputrc in my home directory. I also did a search of this forums, linuxquestions and google and didn't see anything useful (although I may have been a little impatient) :)

Any other ideas?
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Thu Aug 19, 2004 11:15 am    Post subject: Reply with quote

Post your /etc/inputrc file.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
Illissius
Guru
Guru


Joined: 31 Jul 2004
Posts: 395
Location: Hungary

PostPosted: Thu Aug 19, 2004 1:26 pm    Post subject: Reply with quote

I had this problem, and I set my .inputrc to <see below>, and it works fine now. (If the file doesn't exist, just create it.)

Code:
$include /etc/inputrc
set completion-ignore-case on
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Thu Aug 19, 2004 3:13 pm    Post subject: Reply with quote

Double-check if the line
Code:
"\e[3~": delete-char
is present in /etc/inputrc.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Thu Aug 19, 2004 5:14 pm    Post subject: Reply with quote

blaster999 wrote:
Double-check if the line
Code:
"\e[3~": delete-char
is present in /etc/inputrc.


Yes, that line is indeed in the /etc/inputrc file.

Illissius - thanks for the suggestion, unfortunately it didn't work though. :(
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Thu Aug 19, 2004 5:31 pm    Post subject: Reply with quote

Strange. The problem usually arises when ~/.inputrc overrides /etc/inputrc.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Fri Aug 20, 2004 9:36 pm    Post subject: Reply with quote

i have the same problem. don't know why. any help would be nice.

cheers

SteveB
Back to top
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Sat Aug 21, 2004 12:26 am    Post subject: Reply with quote

I no longer have this problem - most likely due to the upgrade of Bash to 3.0.0

See if that helps. :)
Back to top
View user's profile Send private message
chaseguard
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2004
Posts: 140

PostPosted: Sat Aug 21, 2004 1:52 am    Post subject: Me too. Reply with quote

I emerged Bash 3.0r-4 and it does not fix the delete tilde. Besides Metacity, this is another annoyance. Can't figure how any PS1 config culd even do this.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Sep 12, 2004 2:12 pm    Post subject: Reply with quote

Code:
[ebuild   R   ] app-shells/bash-2.05b-r9


Come on, no bash-bashing here please .

I'm on bash 2.05 and have had exactly the same thing since a week or two. Portage as obviously shat on something.

It's minor but annoying.

Let me guess that we're all non-US system users

Could we tackle this with a keymap like xmodmap?



8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Sep 12, 2004 2:59 pm    Post subject: Reply with quote

I have the same problem.

I have an /etc/inputrc with the "\e[3~": delete-char line but no ~/.inputrc file.

This started happening after the upgrade to xorg 6.8 so maybe something with that.
Back to top
View user's profile Send private message
Roptaty
Apprentice
Apprentice


Joined: 12 May 2002
Posts: 184
Location: Norway

PostPosted: Sun Sep 12, 2004 3:07 pm    Post subject: Reply with quote

Does the delete key work properly in X/Gtk/QT programs?
_________________
This signature will selfdestruct in ten seconds...
ten - nine - eight - seven - six - five - four - three - two - one - BSOD (System crashed, please restart the self-destruct sequence)
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Sep 12, 2004 3:09 pm    Post subject: Reply with quote

yes , in this post from Opera
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Sep 12, 2004 5:41 pm    Post subject: Reply with quote

Yeah, this is getting on my tits.

the whole num. pad has gone tits-up in all terminals. Ok with numlock but arrow keys do silly stuff.

Any ideas?
:?
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
breakerfall
Guru
Guru


Joined: 02 Aug 2003
Posts: 509
Location: Manchester, UK

PostPosted: Sun Sep 12, 2004 5:52 pm    Post subject: Reply with quote

I really wish I could remember how I resolved the issue... I now I've since upgraded to Bash version 3, but I don't think that's what fixed it. :?
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sun Sep 12, 2004 6:59 pm    Post subject: Reply with quote

No, like I say I dont think the issue is with bash. zsh is doing just the same in xterm.

Interestingly aterm is just ignoring the numpad whereas xterm bleeps and prints something useless.

:?:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
brettlpb
Apprentice
Apprentice


Joined: 27 May 2003
Posts: 197

PostPosted: Sun Sep 12, 2004 11:37 pm    Post subject: Reply with quote

So, nobody has any resolutions? Same problem here, Bash 3.0
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Sep 13, 2004 6:21 am    Post subject: Reply with quote

i did a diff of /etc/inputrc from one system where the del key works and from one where the del key prints a ~ and both inputrc files are the same. so it can't be the inputrc file.

cheers

SteveB
Back to top
View user's profile Send private message
Inte
Veteran
Veteran


Joined: 15 Jul 2003
Posts: 1387
Location: Mannheim, GER

PostPosted: Tue Sep 14, 2004 4:38 pm    Post subject: Reply with quote

I've recognized this problem some weeks ago and still haven't found a solution. :?
    Console:
  • No umlauts "ä", "ö", or "ü"
  • No Euro symbol "€"
  • Pressing Del, Ins, PgUp & PgDn generates "~" Tilde
  • Appearance:
    Code:
    user@host dir $

  • Executing 'bash' enables umlauts, but euro and function-keys still broken
  • Appearance after executing 'bash':
    Code:
    bash-2.05b$
    Xterm
  • Umlauts are OK because of XTerm*faceName: Bitstream Vera Sans Mono:style=Roman in ~/.Xdefaults
  • Otherwise same behaviour as console except it's not necessary to execute 'bash'

/etc/rc.conf
Code:
KEYMAP="de-latin1-nodeadkeys"
SET_WINDOWKEYS="no"
CONSOLEFONT="lat9w-16"

/etc/env.d/02locale
Code:
LC_ALL="de_DE@euro"
LANG="de_DE@euro"

/etc/X11/xorg.conf
Code:
Option "XkbRules"   "xorg"
Option "XkbModel"   "pc105"
Option "XkbLayout"  "de"
Option "XkbVariant" "nodeadkeys"

Hopefully, Inte.
_________________
Gentoo Linux - Die Metadistribution
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Tue Sep 14, 2004 5:19 pm    Post subject: Reply with quote

What about /etc/profile? And /etc/bashrc or /etc/bash/bashrc?
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
Inte
Veteran
Veteran


Joined: 15 Jul 2003
Posts: 1387
Location: Mannheim, GER

PostPosted: Tue Sep 14, 2004 6:28 pm    Post subject: Reply with quote

What about /etc/profile? :arrow: Isn't modified.

And /etc/bashrc or /etc/bash/bashrc? :arrow: Not existent

~/.inputrc :arrow: Not existent
_________________
Gentoo Linux - Die Metadistribution
Back to top
View user's profile Send private message
borchi
n00b
n00b


Joined: 05 Dec 2002
Posts: 44

PostPosted: Tue Sep 14, 2004 6:47 pm    Post subject: Reply with quote

i know i might be way off on this, but have you recently emerged newer version of baselayout package? i had a similar problem when i started to mess with splashutils (which needed newer version of baselayout (which needed sysvinit package)).
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Tue Sep 14, 2004 7:24 pm    Post subject: Reply with quote

borchi wrote:
i know i might be way off on this, but have you recently emerged newer version of baselayout package? i had a similar problem when i started to mess with splashutils (which needed newer version of baselayout (which needed sysvinit package)).


That is when mine started happening. Anything version > 1.9 I think. I just like gensplash too much, but I haven't found a resolution yet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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