[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
SDL vs stdin?
- To: linuxgames <linuxgames@sunsite.dk>
- Subject: SDL vs stdin?
- From: Dmitry Samoyloff <dsamoyloff@yandex.ru>
- Date: Tue, 11 May 2004 00:53:01 +0400
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Mon, 10 May 2004 16:55:55 -0400
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- Reply-to: linuxgames@sunsite.dk
- User-agent: KMail/1.5
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