Receiving key press and key release events in Linux terminal applications?

前端 未结 3 1827
粉色の甜心
粉色の甜心 2020-12-05 14:23

I would like to write a simple C program that will perform different actions based on both \"key down\" and \"key up\" events. This program will be run from inside rxvt.

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 14:57

    I don't think ncurses will work. The link Basilevs provided talks about the "up arrow" key and the "down arrow" key, not a key press and release.

提交回复
热议问题