You are not logged in.
Hello everybody. After some long fiddling with my .bashrc file and some other further custumizations, I seem to have missed out on where I might have gone wrong. When logged in as a regular user I fail to skip words in the terminal using the control+left/right arrow key.
My control + left presses produce an output of the following : ";5D"
My control + right presses produce an output of the following : ";5C"
But if I log into root via "su" I can skip over these words without a problem. Ctrl+left/right behaves as expected.
I have tried the default .bashrc setup with no luck ( same problems ) from /etc/skel/.bashrc
Futhermore, any other key combinations such as shift or alt + an arrow key procude some other text output, rather than doing what I have seen as quite traditional (skipping over a word... etc...).
I've seen people post about certain packages causing this problem, though when looking at their threads I did not have their "conflicting" packages installed. In any event, any help would be appreciated.
Last edited by akspecs (2012-03-26 23:33:32)
Offline
Your root is using the file '/etc/inputrc' for keyboard input modifications. I don't know the method you used to supplement that for your regular user.
If this is within X and you mean a terminal emulator, you could narrow it down. Does this happen in a VC (Ctrl+Alt+F2) and all terminal emulators; or is it limited to just one terminal app, such as xterm, urxvt, konsole or terminal? Sometimes a WM or DE's keyboard shortcuts will swallow keys before the key entry can reach the application.
Offline
Your root is using the file '/etc/inputrc' for keyboard input modifications. I don't know the method you used to supplement that for your regular user.
If this is within X and you mean a terminal emulator, you could narrow it down. Does this happen in a VC (Ctrl+Alt+F2) and all terminal emulators; or is it limited to just one terminal app, such as xterm, urxvt, konsole or terminal? Sometimes a WM or DE's keyboard shortcuts will swallow keys before the key entry can reach the application.
Sorry for not being clearer. This occurs from an xfce desktop in a terminal emulator. I'll try another app and I'll let you now.
This definately is happening when I am in X, and not in a tty window as you suggested try previously. I've tried gnome-terminal and the default xfce-terminal all with the same results. But root in X behaves fine in terminal emulator.
EDIT: SOLVED with the following!
if it weren't for you, i wouldn't have looked into /etc/inputrc and realized that in my home directory I had a .inputrc file that only had one statement in it. So I appended it with /etc/inputrc by doing the following (as the user experiencing the problem)
$ cat /etc/inputrc >> ~/.inputrcand then I opened a new terminal window and BAM! fixed. So thanks a lot ![]()
Last edited by akspecs (2012-03-26 23:33:04)
Offline
Glad you solved it. Your problem made me refresh my readline knowledge a bit. I've become used to using 'Alt-f' and 'Alt-b' to move forward and backwards by word. Actually, that should be 'Meta-f' and 'Meta-b'.
There's an emacs editing mode lesson and cheat sheet that I like at http://www.catonmat.net/blog/bash-emacs … eat-sheet/. It seems I'm forever learning new command line shortcuts.
Offline