functions from conio.h

April 17, 2005 at 01:36:26
Specs: Red Hat 8.0, 450 Mhz 128 MB ram

Can anybody tell me where are in Linux the fuctions declared in the header file "conio.h" under Windows compilers?

Thanks anticipated!

See More: functions from conio.h

Report •

April 17, 2005 at 01:48:43

Could you provide some examples? I don't have a Windows box handy, much less the development tools that would include this conio.h you speak of.

Report •

April 17, 2005 at 02:24:06

I was talking about,let'say ,getch(), getche(),ungetch(),cprintf(), cscanf(),gotoxy()and I am sure that there are more.

Conio.h is a header file used by C/C++ compilers like Borland C++ Builder.

Report •

April 17, 2005 at 03:09:12

curses.h has getch and ungetch. Many UNIX console UIs are curses-based, so that might be what you're looking for.

stdio.h has the printf and scanf families (try "man 3 printf"), which I assume are equivalent to the versions you mentioned.

I couldn't find the others, with the exception of gotoxy, which is provided by an ASCII art library.

Report •

Related Solutions

April 17, 2005 at 03:53:42

Thanks anyway!

Report •

April 17, 2005 at 04:56:40

GNU/Linux is not organised like Windows (console and terminal I/O are fundamental) and you will not get far thinking in terms of direct equivalents at this low level: you should probably read the Linux programmer's guide at

The primary documentation for most basic functions (including equivalents of most of those you're looking for) is the glibc documentation: 'info libc' and scroll down to "I/O on streams". The "Low-level Terminal Interface" entry is also useful but if you want to easily write terminal independent character cell based apps like mc or alsamixer then the ncurses library is the standard.

Report •

Ask Question