LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2009, 05:38 AM   #1
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Bash, some keys acting strange


This started happening some time ago, and I have no idea where to look to diagnose it (other than the places that I've already looked into).

The problem is that when I am in bash some keys don't fulfill their intended purpose, instead they only print a tilde character, like this: '~'

These keys are: Insert, End, PageUp, PageDown. Del and Home still work ok.

Some notable things are:
  • this happens regardless I have a bashrc file or not, moving it out of scope makes no difference, however...
  • it only happens with my regular user, the root shell works ok
  • it only happens in bash. If I enter, let's say, mc or nano, these keys work ok. In X they work ok. In any other shell, like busybox or zsh they work ok. It's only bash, and only with my user.
  • it happens regardless of the terminal emulator I use, and it happens outside X in pure console as well

Any idea at all where to look? This has been bothering me for quite some time now and I have no idea what else to do.

Any pointer is appreciated, thanks for reading
 
Old 08-31-2009, 05:49 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
What do PgUp and PgDn do when they are working in bash? At the command prompt mine just beep.

Edit: [DELETE]What sort of terminals are you experiencing this behaviour in? Have you tested in the Ctrl+Alt+F1 to F6 terminals?[/DELETE]

Last edited by catkin; 08-31-2009 at 05:51 AM.
 
Old 08-31-2009, 06:24 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Original Poster
Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Quote:
Originally Posted by catkin View Post
What do PgUp and PgDn do when they are working in bash? At the command prompt mine just beep.
Nothing as far as I know, unless in conjunction with shift, and that still works for me. That's more an anecdotal issue, not a true problem.

I am more concerned about the End and Insert keys, it's quite annoying when you are editing commands and you press one of them, and instead of doing their job they print a silly '~'.

Quote:
Edit: [DELETE]What sort of terminals are you experiencing this behaviour in? Have you tested in the Ctrl+Alt+F1 to F6 terminals?[/DELETE]
Yup.
 
Old 08-31-2009, 06:45 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
When you say "only with my user" does that mean you have tried creating another user and that works as expected? If so, have you tried progressively replacing that user's user-specific bash initialisation files with your own -- ~/.bashrc, ~/.bash_profile, ~/.bash_login, and ~/.profile?

Is the problem affecting both login shells and non-login shells?

Do you have an ~/.inputrc file?

Have you tried stty sane?
 
Old 08-31-2009, 06:52 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Original Poster
Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Quote:
Originally Posted by catkin View Post
When you say "only with my user" does that mean you have tried creating another user and that works as expected? If so, have you tried progressively replacing that user's user-specific bash initialisation files with your own -- ~/.bashrc, ~/.bash_profile, ~/.bash_login, and ~/.profile?
Yes. As said, I already tried moving all the initialization files out of scope, that didn't change a thing. I tried other user, and root, both ok.

Quote:
Is the problem affecting both login shells and non-login shells?
Yes. As said, it does the same regardless if I use a terminal emulator or if I login in pure console.

Quote:
Do you have an ~/.inputrc file?
Yes, and erasing it solves the problem. You hit the nail here. I forgot about it. However I'd really like to get the functionality back, so I will have to investigate why is it screwing my keyboard settings.

In that file I only had this:

Code:
set completion-ignore-case On
I've had case-agnostic completion for a long time without problems. So I must assume that something changed in the latest bash releases. I'll have to investigate about that.

But, thanks for pointing me in the right direction. I should have asked before. Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My CPU is acting strange mag1strate Linux - Newbie 8 08-26-2009 06:10 PM
Wacom acting strange Yoda3114 Ubuntu 9 03-29-2007 02:52 AM
CD-Rom acting strange. bilko9070 Linux - Hardware 0 01-11-2006 04:52 AM
Php4 acting strange Sevoma Linux - Software 13 02-15-2005 05:44 PM
Avidemux2 acting strange alitrix Linux - Software 0 12-15-2004 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration