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

Pat*_*son 6 gcc c code-blocks c++ compiler

我使用 IDE DEV C++ 在 Windows 上编译 C 程序,并使用了库和 ,但现在我使用 Ubuntu 并下载了 Codeblocks,但它没有这些库。我只是想使用一些类似于 getch() 的函数,它存在于库 conio 中。有没有类似的库?如果有我该如何安装?

小智 5

看起来您需要改用curses.h 文件。在这里看到:https : //stackoverflow.com/questions/8792317/why-cant-i-find-conio-h-on-linux