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

Greatly appreciate any help.

Cheers.

I think that you have to use the idle func together with the standard library functions.

maybe you use the pipe library with your programm, so you could take what’s in.

Don’t think it’s a good way for performance, but you may seek for another thing.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.