Replacement for <conio.h> in Linux

故事扮演 提交于 2019-12-18 05:05:09

问题


I need to transfer a windows C++ project to linux, however I am currently using MS <conio.h> which is not linux or standards compatible. What header do you recommend to replace it for use in Linux? I would prefer the answer is cross platform too.


回答1:


There is an replacement version of Conio.h for linux based on NCurses.

http://sourceforge.net/projects/linux-conioh/




回答2:


You're going to want ncurses.

http://en.wikipedia.org/wiki/Ncurses



来源:https://stackoverflow.com/questions/3627975/replacement-for-conio-h-in-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!