[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#260232: xterm: XTerm*metaSendsEscape no longer working



On Wed, Jul 21, 2004 at 11:19:30AM +0200, Guido Guenther wrote:
> Hi Thomas,
> On Tue, Jul 20, 2004 at 08:50:53PM -0400, Thomas Dickey wrote:
> > shift       Shift_L (0x32),  Shift_R (0x3e)
> > lock        Caps_Lock (0x42)
> > control     Control_L (0x25),  Control_R (0x6d)
> > mod1        Meta_L (0x40),  Alt_R (0x71)
> > mod2        Num_Lock (0x4d)
> > mod3
> > mod4        Super_L (0x73),  Super_R (0x74)
> > mod5
> Mine always looked like this:

yes (am not at home, but from memory): your Meta_L looks like my Alt_L
before I reassigned it.  Reading last night, I see some comments that
give me the impression that the order of definition (i.e., which xmodmap
command was done first) is the problem, that the last one is the one
that takes effect.

I've seen a few comments by Branden Robinson which seem to indicate that
some change has been made in the keyboard configuration (perhaps that's
related to this).  I'm cc'ing him to see if he has any insight on this.

When I started looking into this a week ago, I could see that (for my
keyboard at least), the left/right Alt keys are used for the cases where
the *VT100.translations resource says "Meta".  Looking at the X library
code, that seems consistent.  Google finds a large number of comments that
indicate that Alt and Meta have been used almost interchangeably, and that
depending on the keyboard configuration they're sometimes just interchanged
at the whim of the person doing the keyboard support.
 
> xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):
> 
> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock        Caps_Lock (0x42)
> control     Control_L (0x25),  Control_R (0x6d)
> mod1        Meta_L (0x40),  Alt_R (0x71)
> mod2        Num_Lock (0x4d)
> mod3      
> mod4        Multi_key (0x73),  Meta_R (0x74)
> mod5        Scroll_Lock (0x77)
> 
> which looks sane to me. Here's the (maybe) interesting part: When I
> press <ALT>, I see:
>  
> Input keysym 0xFFE7, 0:'' 7bit
> Handle 7bit-key

Is that <ALT> the same as one of your Meta_L or Alt_R keys?
xev could identify that.  What your trace seems to indicate to me
is that the mod1 for Meta_L isn't having a real effect, so the literal
key is sent to xterm.  That should show up in xev's trace (though xev
doesn't show the modifier information, it should show a "Alt_L" or "Meta_L").
 
> But when I then press f (while holding down ALT) no output appears in
> the log at all, although I have:
> 
> meta_left mask 0x8 is Mod1 modifier
> alt_right mask 0x8 is Mod1 modifier
> num_lock mask 0x10 is Mod2 modifier
> meta_right mask 0x40 is Mod4 modifier
> 
> in my logs, which looks also okay to me.
> Puzzled,
>  -- Guido



-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpjSFLXB7NVx.pgp
Description: PGP signature


Reply to: