I’m trying to build a simple terminal program with ncurses
, but I’m having a hardtime trying to read key combinations like (Ctrl+shift+) or (Ctrl+)
I tried other libraries like libtickit
which can read these combinations in desktop terminals but doesn’t work well in TTY-only (I’m using Linux).
I saw nano uses ncurses and they support this combinations (like Ctrl+shift+arrows) but the code is very complex.
Does anybody knows a way or any other library (even in other language) that can detect this key combinations for most of modern unix terminals?
Thanks.