SDL's event system and linux/win32 console

Does SDL’s event system work properly on linux/win32 textmode console?
I just ripped out the rendering part of my game-engine to make it possible
to build a dedicated server executable that runs on non-gui servers.
I would hate to have to write a second, non-SDL keyboard code.

My app doesn’t receive any keyboard events when running in console mode…

Steffen Hein wrote:

Does SDL’s event system work properly on linux/win32 textmode console?
I just ripped out the rendering part of my game-engine to make it possible
to build a dedicated server executable that runs on non-gui servers.
I would hate to have to write a second, non-SDL keyboard code.

My app doesn’t receive any keyboard events when running in console mode…

Yes, you need to setup a video mode to get keyboards events. But this
can be an ascii video mode so you can try to use the ascii art rendering
backend :
export SDL_VIDEODRIVER=aalib

Stephane

Yes, you need to setup a video mode to get keyboards events. But this
can be an ascii video mode so you can try to use the ascii art rendering
backend :
export SDL_VIDEODRIVER=aalib

I’m sure it depends on what you’re doing and the platform you’re
using, but when I tested the aalib backend with my app, the keyboard
functions didn’t behave very well.

I don’t think it’s a well-tested backend.

b