public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* XTerm metaSendsEscape not working
@ 2011-11-09 23:25 Jesse Ziser
2011-11-10 2:09 ` Thomas Dickey
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Ziser @ 2011-11-09 23:25 UTC (permalink / raw)
To: cygwin-xfree
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
to my XTerm*translations does the trick (though I would have to add a
line like this for every key on the keyboard). The fact that this fixes
it seems to be evidence that my problem really is at the XTerm level and
not bash or readline or the X server or Windows key mappings or
something like that.
I'm using Windows 7 64-bit.
Any ideas appreciated. Thank you.
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: XTerm metaSendsEscape not working
2011-11-09 23:25 XTerm metaSendsEscape not working Jesse Ziser
@ 2011-11-10 2:09 ` Thomas Dickey
2011-11-10 15:14 ` Jesse Ziser
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Dickey @ 2011-11-10 2:09 UTC (permalink / raw)
To: cygwin-xfree
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.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: XTerm metaSendsEscape not working
2011-11-10 2:09 ` Thomas Dickey
@ 2011-11-10 15:14 ` Jesse Ziser
0 siblings, 0 replies; 3+ messages in thread
From: Jesse Ziser @ 2011-11-10 15:14 UTC (permalink / raw)
To: cygwin-xfree
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-10 15:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-09 23:25 XTerm metaSendsEscape not working Jesse Ziser
2011-11-10 2:09 ` Thomas Dickey
2011-11-10 15:14 ` Jesse Ziser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).