-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALT key combo in 8-bit mode #7274
Comments
In legacy keyboard mode alt+a produces 0x1b a i.e. ESC and a |
it is related to 7-bit mode responses 8-bit response to ALT combo is different this is an incompatibility |
kitty does not support 8-bit controls and never will. They are a bad idea. A bit of googling will tell you why |
They are a good idea. I know that without googling (because im implementing the parser). Ye, i didnt notice that kitty doesnt send 8-bit keys.. still it sends 8-bit response to CPR after switching into 8-bit mode. how do you explain that? |
On Thu, Mar 28, 2024 at 12:19:52AM -0700, determin1st wrote:
They are a good idea. I know that without googling (because im implementing the parser).
The world is bigger than your parser.
Ye, i didnt notice that kitty doesnt send 8-bit keys.. still it sends 8-bit response to CPR after switching into 8-bit mode. how do you explain that?
It doesn't. Support for 8-bit controls was dropped in kitty 0.33.0.
kitty no longer recognizes them and no longer generates them. IIRC the
*only* major terminals left that still accept them are wezterm and libvte
based ones out of the box. And xterm if you configure it to do so via
the eightbitcontrol resources.
|
the world is smaller than my parser. otherwise show me the 8-bit parser or explain in a single sentence why 8-bit parser is better than 7-bit parser (but you said its worse, so i know you never wrote one)
it is. i have the latest Debian 12 |
On Thu, Mar 28, 2024 at 12:52:38AM -0700, determin1st wrote:
> The world is bigger than your parser.
the world is smaller than my parser. otherwise show me the 8-bit parser or explain in a single sentence why 8-bit parser is better than 7-bit parser (but you said its worse, so i know you never wrote one)
ROFL. Sure. Good luck with your parser.
|
ALT key combination while terminal is in 8-bit produces 7-bit response
for example, pressing ALT+a key combo in xterm produces
C3:A1
in hex, while kitty produces1B:61
i had a little dive into that
C3
thing, here's the code from xtermi see it is copied from somewhere. one can find it by
metaSendsEscape
search ininput.c
. so the algo is related to unicode, which is mandatory today..so what it does is, it splits the
61
in two parts, the first isC3
==0xC0 | (((0x80 + 0x61) >> 6) & 3)
A1
==0x80 | (0x61 & 0x3F)
which is rather waky transition to me. i dislike both variants equally. the
1B
variant will be treated as ESC keypress in the 8-bit parser, which is better than 7-bit parser that is unable to differentiate ESC properly by design. though, suppose this cryptic code can be unrolled to a nice map, im just quickreporting this issueThe text was updated successfully, but these errors were encountered: