且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 C 中处理 Linux 控制台中按下的键?

更新时间:2023-02-19 19:42:57

getch() 也许?此外,您需要使用 notimeout() 告诉 getch() 不要等待下一次按键.

getch() from Curses library perhaps? Also, you will need to use notimeout() to tell getch() not to wait for next keypress.