XTerm metaSendsEscape not working

Jesse Ziser ziser@arlut.utexas.edu
Thu Nov 10 15:14:00 GMT 2011


On 11/9/2011 8:09 PM, Thomas Dickey wrote:
> On Wed, 9 Nov 2011, Jesse Ziser wrote:
>
>> Hello,
>>
>> I find that adding the following:
>>
>> XTerm*vt100.metaSendsEscape: true
>> XTerm*vt100.altSendsEscape: true
>> XTerm*vt100.eightBitInput: false
>>
>> to my .Xdefaults does not seem to change the way XTerm behaves WRT
>> meta-key handling. It still sends 0xF7 for meta-W, for example (or the
>> UTF-8 equivalent, depending on how I set LANG in the environment).
>>
>> I've also tried this:
>>
>> XTerm*metaSendsEscape: true
>> XTerm*altSendsEscape: true
>> XTerm*eightBitInput: false
>>
>> to no avail. However, adding lines like the following:
>>
>> Meta <Key>W: string(0x1b) string("w") \n
>
> well, there's more than one aspect to the problem. xterm is looking for
> whatever is used for the modifier which corresponds to the meta key. But
> X doesn't have that as a standard modifier. So xterm looks at the
> modifiers and determines which one it is. It might be the same as an
> Alt-key, and it might not. So there's altSendsEscape as a workaround for
> that case.
>
> On the other hand, if there are translations using the key that xterm
> finds to be the "meta" key, then xterm refrains from using it as a
> modifier, unless (for example) the alwaysUseMods resource is set to true.

OK, removing all translations involving Meta did indeed fix it, and so 
did setting alwaysUseMods to true.  So I guess it wasn't a 
Cygwin-specific issue then after all, just a manpage comprehension 
issue.  Thanks!

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list