为什么我找不到&LT;&CONIO.H GT;在Linux上? [英] Why can't I find <conio.h> on Linux?
问题描述
可能重复:结果
如何实现的getch()C函数在Linux呢?一>
我一直在寻找一个的Linux
版本 CONIO.H
头文件,但还没有发现任何...
I've been searching for a Linux
version of the conio.h
Header file, but haven't found any...
我用 GCC
和文本编辑器 Geany
编译我的Ç
code。
I'm using gcc
and the Text-Editor Geany
to compile my C
Code.
有没有办法来取代它的功能?例如,残培()
Is there a way to replace its functions? For example, getch()
感谢您
推荐答案
CONIO.H
是 C
头在旧的MS-DOS使用的文件编译器创建文本用户界面。编译器,有针对性非DOS操作系统,比如Linux,Win32和OS / 2,提供的这些功能不同的实现。
conio.h
is a C
header file used in old MS-DOS compilers to create text user interfaces. Compilers that targeted non-DOS operating systems, such as Linux, Win32 and OS/2, provided different implementations of these functions.
的的#include&LT;&curses.h里GT;
会给你几乎所有在 CONIO.H $ C $提供的功能C>
有关残培()
类的功能,你可以尝试的这个
For getch()
class of functions, you can try this
这篇关于为什么我找不到&LT;&CONIO.H GT;在Linux上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!