ncurses' blocking mode appears to only allow for blocking on stdin - that is, I have no option of doing some select()
-esque thing where getch()
blocks until either a key is pressed or e.g. data arrives in a pipe. Am I missing something, or is there some other terminal control library that allows me to do this?
Edit: I'm targeting Linux platforms, although the more general the solution, the better.