How to get Ctrl, Shift or Alt with getch() ncurses?
Amazing how sometimes the right answer gets demoted, and answers that “authoritatively” give up get promoted… With a bit of creativity, key_name actually holds the right key to figuring this out, with one caveat – that SHIFT/ALT/CTRL are pressed with other keys at the same time: First, for “normal keys” such as the printable ones, … Read more