views:

127

answers:

2

I need to transfer a windows C++ project to linux, however I am currently using MS <conio.h> which is not linux or standards compatible. What header do you recommend to replace it for use in Linux? I would prefer the answer is cross platform too.

+4  A: 

You're going to want ncurses.

http://en.wikipedia.org/wiki/Ncurses

Ken Simon
+3  A: 

There is an replacement version of Conio.h for linux based on NCurses.

http://sourceforge.net/projects/linux-conioh/

Peter Kiers
+1... So long as he was referring to Borland's conio and not Microsoft's!?
Clifford
True, but the most used functions like coloring, gotoxy, etc. are same in both the Borland as the Microsoft implementation.
Peter Kiers
Neither colour not gotoxy exist in Microsoft's interface (http://msdn.microsoft.com/en-us/library/7x2hy4cx%28v=VS.71%29.aspx) it is minimal compared with the Borland interface. However the Borland interface is almost a superset of Microsoft's, so this may indeed suit.
Clifford