Closed gchp closed 9 years ago
It's impossible, because terminals use the same sequence of bytes for esc and for alt (at least that's the setup most people use). That's why there are input modes, because you can't have both.
It's possible to have both on windows, but for the sake of providing a portable set of behaviour, windows implementation emulates terminals.
Oh, sorry, I thought it was the question in termbox-go, which has windows implementation. In C version of the termbox it's even simpler. There is no windows implementation. :D
Ok, grand. Thanks for the response! Just wanted to make sure I wasn't missing something :)
Is it possible to read the Alt key when not in
INPUT_ALT
mode?Using the
keyboard
demo, pressingAlt+f
for example only highlights thef
key, unless I change toTB_INPUT_ALT
mode, where the same key sequence highlights both keys.I need to be able to get normal
Esc
behaviour, and still use theAlt
key. Is this possible? Could just be missing something simple here.