LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   C programming HELP (https://www.linuxquestions.org/questions/linux-newbie-8/c-programming-help-303858/)

I_Wanna_Kno 03-20-2005 08:03 AM

C programming HELP
 
Hi,
I am learning to program in C on Linux now a days.
System Details:

Distro :Red Hat Linux 9.0
Compiler: gcc

I need to know:

a) Equivalent of clrscr() in Linux:
------------------------------------
In DOS clrscr() was used to clear display in C. It was used by including </B>conio.h</B>.
What to do to achieve the same in Linux ?

b) Which statment to use to color text in text mode in gcc and Linux?

c) How to use kbhit() in Linux. (I included conio.h but it didn't work.)

I am sorry for sounding so stupid, but I am totally new to Linux for programming.

Please help me out!!

cylix 03-20-2005 09:30 AM

BGI graphics are deprecated!

You really want to look at the ncurses library.

If you are coming from TurboC.... you can check these guys out for hints, libraries and generally the info you need for porting.

http://www.sandroid.org/TurboC/


All times are GMT -5. The time now is 09:28 PM.