does any one know a linux equivilent to conio.h?
does any one know a linux equivilent to conio.h?
Linux is an operating system, not a compiler. So technically, the Linux equivalent to conio.h is conio.h.
-Prelude
My best code is written with the delete key.
hmmm slackware 8.0 dosnt have conio.h.....
--== www.NuclearWasteSite.com==--
>hmmm slackware 8.0 dosnt have conio.h.....
That's because it's a nonstandard header file, compilers don't have to implement it if they don't want to.
-Prelude
My best code is written with the delete key.
is <conio> standard though... that is the question. (or was it 'to be or not to be')
Blue
ok not to be rude but yes i know that Slackware 8.0 is a O/S not a compiler (trust me i'm quite aware of this) i was refering to the program g++ that it comes with wich IS a compiler. Aside from that i wanted to know what an equivelent of it was such as what would work as it or another way of using the command _getch().
--== www.NuclearWasteSite.com==--
same question here, Im also using C under the linux operating system here and it does'nt use any conio.h header so I cannot use getch and clrscr which really a pain in the next .
Are there any alternative on this ?
Thanks
>yes i know that Slackware 8.0 is a O/S not a compiler (trust me i'm quite aware of this) i was refering to the program g++ that it comes with wich IS a compiler
Perhaps you should have said this in the first place then. Try curses.h for getch(), not sure about clrscr().
It's :
#include <curses.h>
you may have to compile with -lcurses
ex
>g++ MyProg.cpp -lcurses