+ 1
how to implement "getch" in linux?
getch is a function of nonstandard library conio.h. is there any function instaed of getch in standard libraries? or what is the implementation code for that?
4 Answers
0
I don't use Linux, I'm going to google that ;)
0
thx dear Andres, but endwin cmd on solution1 is bad when we need getch in middle of code(not at the end).
solution2 uses termios driver i dont know whether it is part of all linux c comilers or just for some.
0
just try it, if termios doesn't run you should find more ways :/