Bug 111694 - /etc/inputrc has wrong codes for Ctrl+Left/Right (with fix!)
/etc/inputrc has wrong codes for Ctrl+Left/Right (with fix!)
Status: CLOSED DUPLICATE of bug 80860
Product: Fedora
Classification: Fedora
Component: setup (Show other bugs)
1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-12-08 15:56 EST by Reuben Thomas
Modified: 2014-03-16 22:40 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 14:00:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Reuben Thomas 2003-12-08 15:56:37 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; Linux i686; U) Opera 7.23  [en]

Description of problem:
/etc/inputrc claims to bind Ctrl+Left/Right to backward/forward-word 
in readline.

In fact, it doesn't work (since RH9, I think). Instead of the lines

"\e[5C": forward-word
"\e[5D": backward-word

in /etc/inputrc, the following is required:

"\e[1;5C": forward-word
"\e[1;5D": backward-word

I haven't a clue why, I assume the escape sequences are different in 
the current version of xterm (at least as supplied with FC1).

I'm using the supplied bash in the supplied xterm to get these 
results.

Version-Release number of selected component (if applicable):
2.5.27-1.1

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
    

Additional info:
Comment 1 Bill Nottingham 2004-09-23 01:06:16 EDT
Hm, this works in gnome-terminal, but not xterm. And adding the
suggested fix works in xterm, but not gnome-terminal.
Comment 2 Bill Nottingham 2004-09-23 01:33:12 EDT

*** This bug has been marked as a duplicate of 80860 ***
Comment 3 Red Hat Bugzilla 2006-02-21 14:00:19 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.