有没有类似于conio.h的库?

Pat*_*son 1 c c++ linux ubuntu

我安装了代码块,我想制作一个能够立即读取击键的程序,而不必按Enter键.当我在Windows上使用dev c + +时,我这样做了,但现在我使用Ubuntu和Codeblocks是我发现的最好的IDE,它没有库.任何人都可以告诉我是否有像conio这样的东西,如果是的话,如何安装?

Naz*_*554 6

Linux替代conio.h是ncurses库.要安装它,请搜索包:libncurses,libncurses-dev.

  • `sudo apt-get install ncurses-dev` (3认同)