Re:Devil Mode: A twisted key sequence translator for modifie...
by susam on Sunday May 07, 2023 @12:30PM
(#35853096)
Indeed. A really easy way to test this out on a modern Unix-ish system is to launch a terminal emulator, run cat, and then type Alt+a followed by Esc a. And then for bonus, type Ctrl+[ a. The output should look like this:
$ cat
^[a^[a^[a
Re:Devil Mode: A twisted key sequence translator for modifie...
by msla on Sunday May 07, 2023 @03:01PM
(#35854481)
Interestingly, on my Linux setup, Alt-a gets me this for left and right Alt:
á
Ubuntu 22.04
I set up PrtSc as a compose key and have an .XCompose file, but that still works.
Re:Devil Mode: A twisted key sequence translator for modifie...
by msla on Sunday May 07, 2023 @05:13PM
(#35855649)
Through a little playing around, I figured it out: My Alt actually is a Meta key, in that it sets the high bit. Convert the resulting eight-bit value to UTF-8 and you get the observed behavior: 'a' is 0x61 (0b01100001) and 'á' is U+00E1 (0b11100001) in Unicode.
And escape itself was just a fallback for altmode if all you had was an ascii terminal.
On a standard MIT-AI TV keyboard (Knight keyboard) you could type M-Altmode to get a minibuffer and just type some TECO for immediate execution — if you wanted to cancel you you’ll press escape, which was the original semantics of “escape” anyway. Compressing that to a standard ASCII character set probably made emacs a little more obscure for people who didn’t have a mental model of using it on a more capable keyboard.