[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ctrl-[ ?
From: |
Stefan Monnier |
Subject: |
Re: Ctrl-[ ? |
Date: |
Thu, 06 Jun 2019 08:58:54 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I found on Stackoverflow that C-[ was pretty much hard-coded as
> ESC. Why is that ?
Under most terminals, `escape` and `C-[` send the same byte sequence,
i.e. a single byte 27 which corresponds to the ascii ESC character.
For this reason, when the GUI version of Emacs was introduced (where the
two keys are clearly distinguished), Emacs added `function-key-map`
entries to turn `escape` into ESC when there's no specific `escape`
binding (the mapping from `C-[` to ESC is done at a much lower level,
this one definitely counts as hardcoded).
Stefan
- Re: Ctrl-[ ?, (continued)
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/10
- Re: Ctrl-[ ?, Michael Welsh Duggan, 2019/06/11
- Re: Ctrl-[ ?, Eli Zaretskii, 2019/06/11
- Re: Ctrl-[ ?, Yuri Khan, 2019/06/11
- Re: Ctrl-[ ?, Stefan Kangas, 2019/06/12
- Re: Ctrl-[ ?, Stefan Kangas, 2019/06/12
- Re: Ctrl-[ ?, Alan Mackenzie, 2019/06/12
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/12
- Re: Ctrl-[ ?, Óscar Fuentes, 2019/06/06
- RE: Ctrl-[ ?, Drew Adams, 2019/06/06
Re: Ctrl-[ ?,
Stefan Monnier <=