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 program)?