[Top][All Lists]

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

Re: M-<function-key> vs. ESC <function-key>

From: Miles Bader
Subject: Re: M-<function-key> vs. ESC <function-key>
Date: Fri, 07 Jan 2005 15:36:35 +0900

Richard Stallman <address@hidden> writes:
>     >     More specifically, when I type Meta-left at Emacs running in
>     >     xterm it receives the key sequence [?\e ?\e ?O ?D], which
>     >     gets translated to [?\e left] through function-key-map.
>     In which way?  What is the expected behaviour?
> That Meta-left turns into ESC left is strange.

What other character-sequence should xterm send?  I guess it can set the
high bit for meta-fied single-character keys, but it's a bit unclear
what it should do for keys that send escape sequences, so prepending an
ESC seems as good as anything...

Maybe emacs ought to directly handle such "ESC ESC ..." sequences as
independent function key bindings, since it really seems like that's
what they are; e.g., add the translation ("ESC ESC O D" -> [\M-left]) to

We are all lying in the gutter, but some of us are looking at the stars.
-Oscar Wilde

reply via email to

[Prev in Thread] Current Thread [Next in Thread]