3

Is it possible to detect when keys are released in ncurses?

I managed to get the functionality I want by following the instructions in this answer. However, it requires sudo to work properly, which is not ideal for my use case.

sebshady
  • 141
  • 7
  • 2
    This is not possible. `curses` works with terminal emulators, they don't provide keypress and release information. – Barmar Oct 14 '19 at 11:04
  • 1
    Ncurses does not know anything about keys. It receives *characters* from the terminal or terminal emulator. – AlexP Oct 14 '19 at 12:19
  • Possible duplicate of [Receiving key press and key release events in Linux terminal applications?](https://stackoverflow.com/questions/1409216/receiving-key-press-and-key-release-events-in-linux-terminal-applications) – Thomas Dickey Oct 15 '19 at 07:59

0 Answers0