Fedora Linux Support Community & Resources Center
  #1  
Old 4th June 2005, 01:06 PM
prashant Offline
Registered User
 
Join Date: Dec 2004
Posts: 69
Equivalent of CONIO.H in linux

Hi ppl !!
I am wondering that whatever programs i am makin in linux including "conio.h" in my program are giving the errors that conio.h does not exists so i could not fi gure out whats wrong with the file when it works in the windows platform eaasily without any problems
Whats wrong with the file in Linux platform. Does some one has anyidea of whats going wrong with it and what can be the possible solution of the problem. Thanx in advance.
__________________
Prashant Sharma(IMT Ghaziabad)
Reply With Quote
  #2  
Old 4th June 2005, 01:35 PM
raghavendra Offline
Registered User
 
Join Date: Jan 2005
Location: Bangalore
Age: 31
Posts: 360
Hi
I dont think conio.h is available....... is specific to Borland / Inprise ("turbo") compilers.
Just delete the getch(), clrscr() function if you have in your program and compile
__________________
My Website
http://raghu.buildtolearn.net

Last edited by raghavendra; 4th June 2005 at 01:38 PM.
Reply With Quote
  #3  
Old 4th June 2005, 01:41 PM
raghavendra Offline
Registered User
 
Join Date: Jan 2005
Location: Bangalore
Age: 31
Posts: 360
You might also be interested in ncurses
http://www.tldp.org/HOWTO/NCURSES-Pr...ro.html#WHATIS
That might help
__________________
My Website
http://raghu.buildtolearn.net
Reply With Quote
  #4  
Old 4th June 2005, 05:10 PM
prashant Offline
Registered User
 
Join Date: Dec 2004
Posts: 69
Yes I am very much interested in "curses.h" as i have found soe thing on net regarding it istead of conio but can't exactly relate what is it all about.
__________________
Prashant Sharma(IMT Ghaziabad)
Reply With Quote
  #5  
Old 4th June 2005, 11:40 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
Quote:
Originally Posted by prashant
I am wondering that whatever programs i am makin in linux including "conio.h" in my program are giving the errors that conio.h does not exists so i could not fi gure out whats wrong with the file when it works in the windows platform eaasily without any problems
Linux is not Windows. That's the first thing you must learn.
This means any Windows-specific libraries, APIs and header files just don't exist.
Reply With Quote
  #6  
Old 6th June 2005, 07:03 AM
Daverz Offline
Registered User
 
Join Date: May 2004
Posts: 128
Quote:
Originally Posted by prashant
Hi ppl !!
I am wondering that whatever programs i am makin in linux including "conio.h" in my program are giving the errors that conio.h does not exists so i could not fi gure out whats wrong with the file when it works in the windows platform eaasily without any problems
Whats wrong with the file in Linux platform. Does some one has anyidea of whats going wrong with it and what can be the possible solution of the problem. Thanx in advance.
The old DOS conio assumed a single user sitting in front of the console. Unix was a multi-user, networked OS from the beginning, so that wouldn't work, a more general (and thus harder to configure) terminal handling API is needed called termios.

I think the book Linux Application Development does a really good job at covering this:

http://www.danlj.org/mkj/lad/contents.html

They cover basic TTY handling and the S-Lang screen handling library, which is an alternative to ncurses. At an even higher level, there's the newt library.
Another thing to check out is the dialog utility

man dialog
Reply With Quote
Reply

Tags
conioh, equivalent, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
J2EE equivalent in Linux ... thushanthan Programming & Packaging 2 18th September 2007 11:18 AM
What's the Linux equivalent of SlowJet Using Fedora 6 26th January 2007 06:33 AM
porting conio.h to Linux tashirosgt Programming & Packaging 1 23rd September 2006 04:29 PM
Quickbooks equivalent in linux sailu_mvn Using Fedora 3 28th November 2005 11:40 AM
what is the equivalent to cmd.exe in linux? Obocaman Installation, Upgrades and Live Media 6 5th October 2004 09:33 PM


Current GMT-time: 09:20 (Monday, 24-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Evansville - Godalming - Orlovskiy