LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2004, 10:32 PM   #1
jojopopo0372
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
Question conio.h??


hi all... i am new to everything here.. (new to linux, new to programming ...)

i have a source code which come with the conio.h header file... i could not compile it...

I have been reading about this... someone suggest the use of "ncurses" instead. but how to convert my source to that???

Anyone can help?
 
Old 09-06-2004, 11:23 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
hi,
termio i think is a borland wrapper on some windows.h junk
so you will just have to figure out what you are trying to do and use whatever you need to do it.
you won't be able to easily port that code over to anything similar.
there is a header termio.h that might help
just go to /usr/include and have a look around
 
Old 09-07-2004, 12:29 AM   #3
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
conio.h contains a lot of information. What, specifically, are you using conio.h for in your program? Just concentrate on finding a replacement for that one thing instead of the entire header file.
 
Old 09-07-2004, 03:11 AM   #4
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Yup i think itsme86 have suggested the best solution. You just pick out the functions of conio.h that are used in your program and then write them or use an alternative. Like if you want to use clrscr() function to clear screen you can simply write your own like.

#include <unistd.h>

void clrscr()
{
system("clear");
}

So pick the odd one out
 
  


Reply



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
ncurses and conio help... darkarcon2015 Programming 3 01-02-2005 03:20 PM
ConIO.h Mohsen Linux - General 4 09-04-2004 03:46 PM
conio.h ??? Umanga Programming 3 09-02-2004 05:06 PM
conio.h matt_w_lambert Programming 9 07-19-2003 12:04 AM
Conio Mohsen Programming 6 02-19-2003 02:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:20 AM.

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
Open Source Consulting | Domain Registration