-
Notifications
You must be signed in to change notification settings - Fork 78
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
Can’t use Alt/Meta #28
Comments
Could you elaborate this a bit more? Do you want to use these as --grab-XY= or do they have special bindings in other terminals? Or do you want to use them in SSH as special keys? I'm not following, sorry. |
My use-case: In Midnight Commander there are lots of commands like |
Indeed, xterm generates '\302\210' on alt+backspace. Hm, I haven't found anything about that in the vt220 specs. I will have a look how these are handled by xterm and Co. |
Well for me it’s specific
check |
Currently the problem is that kmscon ignores the ALT/MOD1 key entirely. That is, the bash doesn't even know whether it was pressed or not. http://invisible-island.net/xterm/ctlseqs/ctlseqs.html http://www.vt100.net/docs/vt510-rm/chapter8 Hm, sorry that i cannot fix this right away. I will have to look into this again this week. Thanks for the fast responses! |
I can confirm this, in almost all terminal emulators I know (well except xterm) meta should should send \033 (escape) before the key. xterm has a config for that called metaSendsEscape (see the ctrlseqs file you linked to), and as I said it's the default almost everywhere. A quick test if it works is ALT-b to back a word, and ALT-f to forward a word, which should work in every readline application (e.g. bash). |
And btw, the mod to use for this is UTERM_MOD1_MASK. |
I've pushed a fix to the repository: Thanks a lot for the fast responses. It still bothers me that XTerm disables altSendsEscape by default and uses the 128-shift instead. However, if the other terminals enable it by default, it is probably the best to do this in kmscon, too. (I also don't see any reason why that 128-shift should be any useful). If there are any more issues with this, you can reopen it. Thanks! |
Not sure if that has anything to do with termcap, but I cannot use things like
<Alt>Period
or<Alt>Backspace
The text was updated successfully, but these errors were encountered: