What is the equivalent to getch() & getche() in Linux?

后端 未结 6 2042
南方客
南方客 2020-11-22 05:53

I am not able to find the equivalent header file for conio.h in Linux.

Is there any option for getch() & getche() function in Linux?

6条回答
  •  执念已碎
    2020-11-22 06:26

    There is a getch() function in the ncurses library. You can get it by installing the ncurses-dev package.

提交回复
热议问题