[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

SDL vs stdin?



Hi all,

I want to implement the console commands in my game engine (to reload scripts 
or maps on the fly, etc) and I'd like to use stdin for this purpose to 
simplify the coding. So, I'm trying to read from stdin using fgets() call (or 
the 'cin' object) in the program that uses libSDL's event handling also and 
this always leads to a crash. Is it a known conflict? Or maybe the problem is 
not libSDL?

Regards, Dmitry Samoyloff