LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2005, 09:03 AM   #1
I_Wanna_Kno
LQ Newbie
 
Registered: Mar 2005
Location: India
Distribution: Red Hat 8.0
Posts: 11

Rep: Reputation: 0
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!!
 
Old 03-20-2005, 10:30 AM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 06:16 AM
im new to programming but..... boxerboy Programming 6 08-26-2005 07:17 AM
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 03:42 AM
C programming oranj Linux - Networking 1 12-07-2004 01:40 AM
Qt Programming... jinksys Programming 1 08-06-2003 05:33 AM


All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration