I am not able to find the equivalent header file for conio.h in Linux.
Is there any option for getch() & getche() function in Linux?
getch()
getche()
As said above getch() is in the ncurses library. ncurses has to be initialized, see i.e. getchar() returns the same value (27) for up and down arrow keys for this
ncurses