[Konsole-devel] [Bug 40751] meta keys no longer get through to bash
Erik Ernst
eernst at daimi.au.dk
Tue Apr 15 21:06:45 UTC 2003
------- 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=40751
------- Additional Comments From eernst at daimi.au.dk 2003-04-15 23:06 -------
The problem can be fixed in the following way (based on the source rpm
file 'kdebase3-3.0.4-6.src.rpm'). Note that this is a 'quice-n-dirty'
solution (I don't even know how many conventions I'm breaking), but it's
easy, and it solves the problem for me .. It is now again possible for
me to use meta-B and friends for command line editing. :-)
Here are the tiny patches:
--------------------------------------------------------------------------
Patch for keytrans.h
--------------------------------------------------------------------------
27c27,28
< #define BITS_COUNT 7
---
> #define BITS_Meta 7
> #define BITS_COUNT 8
--------------------------------------------------------------------------
Patch for TEmuVt102.cpp
--------------------------------------------------------------------------
824c824,825
< encodeStat(AltButton , BITS_Alt
),
---
> encodeStat(AltButton , BITS_Alt
) +
> encodeStat(MetaButton , BITS_Meta
),
872c873
< if ((ev->state() & AltButton) && !metaspecified ) sendString("\033");
---
> if ((ev->state() & MetaButton) && !metaspecified ) sendString("\033");
880c881
< if (ev->state() & AltButton) sendString("\033"); // ESC, this is the
ALT prefix
---
> if (ev->state() & MetaButton) sendString("\033"); // ESC, this is the
ALT prefix
--------------------------------------------------------------------------
HTH, Erik Ernst
More information about the konsole-devel
mailing list