[Konsole-devel] Konsole and control characters...

Constantin Berzan exit3219 at gmail.com
Sun Nov 25 13:51:14 UTC 2007


Hello,
In KDE3.5 Konsole sends the following control characters:

ctrl+right  - ^[[1;5C
ctrl+left   - ^[[1;5D
alt+right   - ^[[1;3C
alt+left    - ^[[1;3D

These are the same codes that xterm sends so I'm assuming they are 
the "standard."

In KDE4 however, it sends ^[[1;*C and ^[[1;*D for both Alt and Ctrl.

Here's a patch to revert to the old behavior. Moving one word forward / 
backward with ctrl+arrows works now. If I am missing anything, please 
enlighten me (I have no idea why this was changed in the first place.)

There are also different control chars for Alt+PgUp, Alt+PgDown, Ctrl+F* and 
Alt+F*, but I don't use them so I left them alone. Probably they should be 
changed too.





-- 
Now reading: 'Anyone but You' by Jennifer Crusie
http://ascending.wordpress.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 1167 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20071125/6a27b77e/attachment.bin>


More information about the konsole-devel mailing list