Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303691 - /etc/inputrc ctrl+arrow escape sequences in konsole are wrong
Summary: /etc/inputrc ctrl+arrow escape sequences in konsole are wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 10:09 UTC by Fabio Rossi
Modified: 2010-02-14 17:28 UTC (History)
0 users

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


Attachments
inputrc.diff (inputrc.diff,440 bytes, patch)
2010-02-06 10:10 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2010-02-06 10:09:57 UTC
Some escape sequences associated to konsole in /etc/inputrc are wrong. All the versions of baselayout have this problem

CTRL+left arrow = ^[[1;5D
CTRL+rigth arrow = ^[[1;5C
Comment 1 Fabio Rossi 2010-02-06 10:10:48 UTC
Created attachment 218633 [details, diff]
inputrc.diff

Proposed patch
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-02-08 07:32:40 UTC
@kde, please, could you confirm this bug/fix and then reassign the issue on baselayout maintainers.

@Fabio, do you have additional links/source code sniplets/steps to reproduce to confirm this issue?
Comment 3 Fabio Rossi 2010-02-08 09:47:53 UTC
> @Fabio, do you have additional links/source code sniplets/steps to reproduce to
> confirm this issue?
> 

Hhmm, it seems that also the original configuration of /etc/inputrc is working as is. But if I use the trick described in the header of /etc/inputrc, using konsole, to discover the escape sequences I got the two values described in my patch and not the values used in the standard /etc/inputrc
Comment 4 SpanKY gentoo-dev 2010-02-13 16:36:34 UTC
that's because the kde ctrl+arrow is the same as an earlier entry

something isnt right as it says:
# konsole (alt + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word
# konsole (control + arrow key)
"\e[1;3C": forward-word
"\e[1;3D": backward-word

they cant both be the same.  since i added them and i dont recall why i did this, and i get the same result as Fabio from bash, i'll just delete the second set of entries.
Comment 5 Fabio Rossi 2010-02-13 17:47:57 UTC
The same is true for the following portion:

# gnome-terminal (control + arrow key)
"\e[1;5C": forward-word
"\e[1;5D": backward-word

This definition is redundant so also this part might be deleted
Comment 6 SpanKY gentoo-dev 2010-02-14 17:28:41 UTC
should be fixed in svn now

http://sources.gentoo.org/baselayout?rev=3173&view=rev