3 ms·
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 the
by susam 4y ago
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
- msla 4y agoInterestingly, 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.
- msla 4y agoThrough 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.