Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53770 - /etc/inputrc: backward-word and forward-word with ESCAPE left and ESCAPE right not working
Summary: /etc/inputrc: backward-word and forward-word with ESCAPE left and ESCAPE righ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 53771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-12 22:09 UTC by Arturo Alberto Busleiman
Modified: 2005-02-11 21:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arturo Alberto Busleiman 2004-06-12 22:09:33 UTC
/etc/inputrc specifies \e[5C and \e[5D for backward-word and forward-word when these binding is usually maped for ESCAPE+cursor_left and ESCAPE+cursor_right. When using any of those combinations, instead of the cursor being positioned at the beginning/end of the previous/following word, you get an " [D" or " [C" in your command line.

Reproducible: Always
Steps to Reproduce:
1.Login with bash shell (which uses readline)
2.type a few words
3.try to go to the previous word by pressing ESCAPE+cursor_left

Actual Results:  
Instead of going backwards, " [D"  appears.

Expected Results:  
Position the cursor at the beginning of the word.

You can solve it just by modifying /etc/inputrc like this:

ORIGINAL FILE:
"\e[5C": forward-word
"\e[5d": backward-word

PATCHED FILE:
"\e\e[5C": forward-word
"\e\e[5D": backward-word
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-13 01:35:18 UTC
*** Bug 53771 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2005-02-11 20:53:04 UTC
what terminal ?  what version of bash ?  what version of readline ?

depending on the terminal i use (eterm/xterm/konsole/aterm), i needed to add different lines, but none were '\e\e[5C' or '\e\e[5D' ...
Comment 3 SpanKY gentoo-dev 2005-02-11 21:12:55 UTC
just checked with debian and they have this:
# "\e\e[C": forward-word
# "\e\e[D": backward-word
Comment 4 SpanKY gentoo-dev 2005-02-11 21:25:54 UTC
it'll be in baselayout-1.11.10+