[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make Super key work in console
From: |
Stefan Monnier |
Subject: |
Re: Make Super key work in console |
Date: |
Sat, 20 Feb 2021 13:13:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> But for a terminal emulator, the one who "types those keys" is the
>> terminal emulator, so it wouldn't be "burdened" by having to type
>> a few more keys to have a clear and unambiguous encoding.
>>
>> > This is in no way singular: many terminal emulators convert
>> > M-SOMETHING into ESC SOMETHING, at least as an option.
>>
>> That also somewhat sucks, but *much* less (and it was done at a time
>> when you could argue that resource constraints made it important to have
>> a "short and simple" approach rather than a "general, robust, and
>> reliable" one).
>
> I don't think I understand. Given the APIs used by text-mode programs
> to read keyboard input, what are the alternatives for those "yucky"
> methods?
Using escape sequences that start with ESC (and which hence collide
with actual uses of the ESC key) was arguably unavoidable, indeed.
But using "just ESC" as "the escape sequence for meta" leads to more conflicts
since it doesn't just conflict with the use of the ESC key but also with
ESC used for escape sequences.
They should have used "ESC <something>" for the meta key so you don't
get conflicts like `M-O` conflicting with escape sequences that start
with `ESC O`.
Stefan
- Re: Make Super key work in console, (continued)
- Re: Make Super key work in console, Yuri Khan, 2021/02/20
- Re: Make Super key work in console, Stefan Monnier, 2021/02/20
- Re: Make Super key work in console, Eli Zaretskii, 2021/02/20
- Re: Make Super key work in console, Yuri Khan, 2021/02/20
- Re: Make Super key work in console, Yuri Khan, 2021/02/20
- Re: Make Super key work in console, Jean Louis, 2021/02/21
- Re: Make Super key work in console, Yuri Khan, 2021/02/21
- Re: Make Super key work in console, Jean Louis, 2021/02/21
- Re: Make Super key work in console, Stefan Monnier, 2021/02/20
- Re: Make Super key work in console, Eli Zaretskii, 2021/02/20
- Re: Make Super key work in console,
Stefan Monnier <=
- Re: Make Super key work in console, Eli Zaretskii, 2021/02/20
- Re: Make Super key work in console, Stefan Monnier, 2021/02/20
- Re: Make Super key work in console, Eli Zaretskii, 2021/02/20
- Re: Make Super key work in console, Stefan Monnier, 2021/02/21
- Re: Make Super key work in console, Jean Louis, 2021/02/20
- Re: Make Super key work in console, Emanuel Berg, 2021/02/21
- Re: Make Super key work in console, Jean Louis, 2021/02/21
- Re: Make Super key work in console, Emanuel Berg, 2021/02/21
- Re: Make Super key work in console, Jean Louis, 2021/02/22
- Re: Make Super key work in console, Emanuel Berg, 2021/02/24