I wanted to use the conio.h
header file in one of my C codes but as we know the header file is not available for Ubuntu, what should we do if we want to implement the functions if the header file conio.h
, like getch()
& getche()
etc?
1 Answer
Check curses.h
, available here is a C
library for a terminal user interfaces (TUI).
conio.h
was a C
library for terminal user interfaces for MS-DOS systems not *nixes.
Here is a turorial for the curses library and here is the official manual
To get the curses.h
header type: sudo apt-get install libncurses5-dev
-
If m including the header file curses.h the fatal error comes no such file or directory.. Jul 31, 2014 at 14:29
-
1thnx @Stef;but now the problem arises, if I made an application using this header file and wanted to run it on another machine and that machine surely will not have the curses.h header file. And again the application wont work on it. Aug 1, 2014 at 16:02
-
1
-
thnx @stef I'll let you know if there is more to ask in this.:) Aug 2, 2014 at 4:09