Call back function for 'stdin'

I’m using GLUT, and for keyboard input there’s glutKeyboardFunc(), for mouse there is glutMouseFunc(). Now is there one for stdin (i’m on linux), that’ll call my function when there’s stuff on ‘stdin’ (ie out put from another program ‘piped’ to my openGL orogram)?

Greatly appreciate any help.

Cheers.

GLUT doesn’t handle this because stdin and stdout functions are a part of a standard C library, so there is no need for this. (Remember GLUT’s aim is portability, and stdin functions are portable “by default”.

Cheers,
-Lev