为什么我找不到<&CONIO.H GT;在Linux上? [英] Why can't I find <conio.h> on Linux?

查看:203
本文介绍了为什么我找不到<&CONIO.H GT;在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<&curses.h里GT; 会给你几乎所有在 CONIO.H

有关残培()类的功能,你可以尝试的这个

For getch() class of functions, you can try this

这篇关于为什么我找不到<&CONIO.H GT;在Linux上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆