[Konsole-devel] [Bug 108547] Ctrl + PagUp/PagDown aren't working anymore
Hans de Goede
j.w.r.degoede at hhs.nl
Tue Jul 5 07:33:11 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=108547
------- Additional Comments From j.w.r.degoede hhs nl 2005-07-05 09:33 -------
konsole sets TERM to xterm and as such should behave as xterm, the old behaviour was wrong. Appearantly some distro makers have put bindings for this wrong behaviour in /etc/inputrc or ~/.inputrc, causing bash and other readline apps todo special things with this wrong behaviour.
Esp the prefixing of ESC (^[) to an ESC-sequence, making it start with a double ESC is totally wrong (the alt behaviour described in comment 4)
The proper fix for this is to look at your /etc/inputrc and/or ~/.inputrc
and look for lines like:
"\e[5C": forward-word
"\e[5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
These four line for example map ctrl left/right to forward word/backward word. The first two are for broken claming to be xterm terminal emulators such as gnome-terminal and older konsoles the last two are for the real xterm and current konsole, this is probably what you (Thiago Macieira) want. This however maps it the ctrl left/right instead of alt, if you really want alt replace the 5's by 3's, but CTRL is probably better since this is what graphical editors use.
The solution for the original reporter (Pino Toscano) also is to modify your inputrc file(s) and add bindings like this:
"\e[5;5~": history-search-forward
"\e[6;5~": history-search-backward
I could be wrong about the actions bound to the keys though, because I'm unfamiliar with the behaviour you discribe other options are:
forward-search-history
non-incremental-forward-search-history
And ofcourse their backward counterparts.
More information about the konsole-devel
mailing list