View previous topic :: View next topic |
Author |
Message |
dave_pretty n00b

Joined: 09 Sep 2003 Posts: 54 Location: Canberra, Australia
|
Posted: Thu Jun 10, 2004 4:03 am Post subject: cannot use the 'c' key in a bash shell [FIXED] |
|
|
This is pretty strange, I'm running my system on ~x86, and since an update a few days ago the 'c' key won't work in a bash shell.
It's not an X thing because I can login to a virtual terminal and the problem is there too (though I can use it in the login name, as well as other apps - which is why I can type it here, in konqueror).
I can use the key in bash if I log in as root, and it works in a csh shell (I was able to find a previous 'c' for 'csh' in my command recall )
My .bashrc hasn't changed recently - ie: since the key was working.
Any ideas? _________________ Jabber: hippojazz@jabber.org
free music at http://davepretty.com
Last edited by dave_pretty on Fri Jun 11, 2004 1:35 am; edited 1 time in total |
|
Back to top |
|
 |
StringCheesian l33t

Joined: 21 Oct 2003 Posts: 887
|
Posted: Thu Jun 10, 2004 4:29 am Post subject: |
|
|
Is it an old keyboard? Maybe it needs to be cleaned or something. |
|
Back to top |
|
 |
dave_pretty n00b

Joined: 09 Sep 2003 Posts: 54 Location: Canberra, Australia
|
Posted: Thu Jun 10, 2004 4:32 am Post subject: |
|
|
the keyboard is fine because I can type 'c' as much as I want (c c c c c c c cccccccccccccc) when I'm not in bash - and when I log in as root, and when I'm in a csh shell...... _________________ Jabber: hippojazz@jabber.org
free music at http://davepretty.com |
|
Back to top |
|
 |
dave_pretty n00b

Joined: 09 Sep 2003 Posts: 54 Location: Canberra, Australia
|
Posted: Thu Jun 10, 2004 5:14 am Post subject: |
|
|
the strangeness continues - I created a new user:
useradd -m -s /bin/bash -G users,wheel debug
and this user can use 'c' in a bash shell
I copied the debug users .bashrc, .bash_profile, and .bash_history to my own, and I still have the problem _________________ Jabber: hippojazz@jabber.org
free music at http://davepretty.com |
|
Back to top |
|
 |
raday n00b


Joined: 02 Sep 2002 Posts: 15
|
Posted: Thu Jun 10, 2004 7:28 am Post subject: |
|
|
Is this while in a Window Manager, and you are running xterm, or some other terminal emulator. Or is this happening in console mode when X is not running?
What might be happening is that some where you are redefining the C key, whether on perpose or by some program doing this for you with out your knowledge.
The reason I say this, is that when you created the debug user, that user was not affected. This is probably due to the fact that the debug user starts off with default preferences for most all applications, for instance if you changed the look and feel of KDE, or reset keyboard mappings, the debug user would not be affected.
One thing to do might be to use another window manager and see if this happens there
I don't know if this helps but if anything maybe I can point you in the right direction. |
|
Back to top |
|
 |
dhurt Apprentice

Joined: 14 May 2003 Posts: 278 Location: Davis, CA
|
Posted: Thu Jun 10, 2004 7:34 am Post subject: |
|
|
I have just recently noticed strangeness with my normal user account in the bash shell as well. I have not been able to get to the bottom of it yet (Honestly have not put much time into it) but the command:
Seems to clear up my problems. Mine are that the backspace and delete keys stop working correctly in the bash shell and this carries over to vim. It does not happen all the time, just some of the time. Oh well, once it annoys me too much or I have abit more time I will try and get to the bottom of it. But just as you said it is only on the user account and not root.  _________________ "And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick |
|
Back to top |
|
 |
dave_pretty n00b

Joined: 09 Sep 2003 Posts: 54 Location: Canberra, Australia
|
Posted: Fri Jun 11, 2004 12:06 am Post subject: |
|
|
I can't use the key in a virtual terminal, outside of KDE and X. I took xdm out of the rc scripts and rebooted so that there wasn't a trace of KDE/X running and still it didn't work in a virtual terminal. So I don't see how it can be a KDE configuration problem.
"stty sane" didn't help.
I've re-emerged bash, didn't help _________________ Jabber: hippojazz@jabber.org
free music at http://davepretty.com |
|
Back to top |
|
 |
syscrash Guru


Joined: 14 Apr 2003 Posts: 541
|
Posted: Fri Jun 11, 2004 1:26 am Post subject: |
|
|
Have you checked your
?
You should try
Code: | mv ~/.inputrc ~/.inputrc.old |
And see if the problem disappears. |
|
Back to top |
|
 |
dave_pretty n00b

Joined: 09 Sep 2003 Posts: 54 Location: Canberra, Australia
|
Posted: Fri Jun 11, 2004 1:34 am Post subject: |
|
|
Thankyou - that was it - I didn't know about .inputrc until a forum I read here a while ago - and had I blindly copied something to it and made a typo, then forgotten all about it
Cheers _________________ Jabber: hippojazz@jabber.org
free music at http://davepretty.com |
|
Back to top |
|
 |
dhurt Apprentice

Joined: 14 May 2003 Posts: 278 Location: Davis, CA
|
Posted: Fri Jun 11, 2004 3:19 am Post subject: |
|
|
Thanks that solved my problem as well. Do you know what created this file?
Code: |
~/.inputrc
set show-all-if-ambiguous on
set editing-mode vi
set keymap vi
set -o vi
|
_________________ "And isn't sanity really just a one-trick pony, anyway? I mean, all you get is one trick, rational thinking, but when you're good and crazy, ooh ooh ooh, the sky's the limit!" -- The Tick |
|
Back to top |
|
 |
IWBCMAN Guru


Joined: 25 Jun 2002 Posts: 474
|
Posted: Fri Jun 11, 2004 8:01 am Post subject: |
|
|
I posted this a couple of days ago-almost the exact same time....
Keyboard nightmare-term's refuse 'c' key
Quote: |
Help!
This is so embarrising-usually I am trying to help others on these forums-but I am completely stumped. Gone is my fealing of mastery, comprehension and understanding.
Description:
all terminal apps refuse the entry of the 'c' key
(gnome-terminal, xterm, Eterm, konsole)
Note this only effects the lowercase. Uppercase works fine.
xev reports that the 'c' key is being pressed-but it does not display. When I copy and paste from a terminal window the 'c' in the copied text vanishes upon pasting.
My keyboard has been working fine for a long, long time without problems. The keyboard is not at fault.
Not only do the X windows terminals refuse the entry of the 'c' key-even the tty virtual terminals(ctrl-f?).
As you can see from this post the 'c' key works fine in Mozilla- it also works fine in every other program I have tried-gedit, openoffice etc.
This little problem is killing me -I can't edit make.conf or use 'cat' to display /etc/fstab or 'chmod/chown' much of anything!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
iiiiieeeeeeeeeeyyyyyyyaaaaaaaaahhhhhhh!
I have checked my .bashrc, .bash_profile, .profile and /etc/profile, /etc/inputrc.
I am using a german keyboard-but the problem persists even with US english layouts-ie. with a US english layout of course the äöüß etc. key don't work-but neither does 'c'.
I have mucked around with loadkeys and with setxkbmap to no avail. The problem is present in GNOME but also in Enlightenment and KDE.
This is so wierd-but it is deadly serious-I will have to reinstall if I can't solve this problem-it is crippling-and I have no desire to reinstall my extremely complex LARGE install (/usr has 14GB alone).
Please if any of you have ever seen anything like this-please chime in. Any help would be greatly appreciated.....
|
I 'solved' this problem for the X consoles(gnome-terminal, xterm, konsole etc.), after having reinstalled bash and updateing baselyaout to no avail, by running tsch-where the 'c' key worked fine-I then ran 'strace bash' to see what it was calling-and suddenly things were working ok again.
But the virtual console(ctrl-f*) still did not work-I have pulled my hair out for days with this- I created symlinks and alias to work around the problem 'Cd' --> 'cd' etc.
following your post here I simply removed the /root/.inputrc file and voila things work ok again......oh man how mindnumbing....... |
|
Back to top |
|
 |
|