Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.41k stars 855 forks source link

ALT GR keys don't get captured #591

Open LB45440078L opened 4 years ago

LB45440078L commented 4 years ago

OS: Hackintosh Catalina 10.15.3 Shell: ZSH 5.7.1 I am using Italian keyboard layout. Whenever i try to write characters such as '#', '@' that would normally require the combo ALT GR + \ , it does not work. I tried with default terminal from macOS and they do work. Any idea on how to fix this?

FernandoGV667 commented 4 years ago

OS: macOS Mojave Shell: ZSH 5.8 Spanish keyboard layout Same issue with Alt key. Works fine with iterm

benediktsattler commented 4 years ago

Don't have a solution but as a workaround you can press control+option / control+alt to get on the alt Graph layer. This is basically what the right alt key is mapped to when on an iso layout profile.

bananflugan commented 4 years ago

I have the exact same problem as OP. Using swedish layout and cannot make @£$ etc in cool retro term. OS: Catalina 10.15.6 on a Macbook Pro.

rtauziac commented 2 years ago

Still an issue on 1.2.0

OS: Big Sur 11.6

I’m using an alternate keyboard layout (BÉPO) and a lot of keys are hidden behind the Alt modifier (ex: {, }, &, |, _, …).

1.2.0 is a huge and awesome improvement but unfortunately still unusable in the current state 🙁

rtauziac commented 2 years ago

Well I tried modifying the source code, I cloned the osx-fixes branch and commented a couple lines about alt modifiers on qmltermwidget/lib/Vt102Emulation.cpp l.1108:

//if ( modifiers & Qt::AltModifier && !(wantsAltModifier || wantsAnyModifier)
//     && !event->text().isEmpty() )
//{
//    textToSend.prepend("\033");
//}

and now it works like a charm 👌, not sure about this special handling mentioned above in the code 🤷‍♀️.

But once I copy the compiled executable inside /Applications, the issue comes back with some character display issue, quite stange.

Well now that I can type everything in the terminal I’m happy 😄

Edit: I have to launch it from the terminal in order to not have the previously described bug.

bananflugan commented 2 years ago

I have compiled a build from the master branch with these fixes which so far has shown 0 issues. I have created a dmg file as well if anyone would like to use it.