Note: (repeating a comment below) not even SDL_Quit works when the
videosystem isn’t active… I personally feel this is a bug!
(mind you I haven’t traced the code yet… hrm… later today after work
I could cobble my own key handler together if -any- of the event system
were operational under the console but -none- of it is!!!
although kicking in the dummy video driver allowed my code to work…
I’m quite aware it might not be possible - and even though textmodes
are on the decline, some platforms still use them
…and more importantly, sometimes I’m not in X, and I want stdio
on SDL and a console present:
SDL_Console works fairly well and while it needs a lot of tuning
to match the linux console and can’t be accelerated the way the
linux console is (due to the lack of accelerated sprites)…
(umm it’s more complicated than that I’m oversimplifying
on SDL and stdio support:
What would it take for SDL on systems that have it to use the
console present with events active? It’d be a snap under linux…
well except for X. and Windows doesn’t have a console most of the
time. MacOS <=9 doesn’t, but MacOS X does… hrm…
I think this is desireable
hrm… I still can’t think of a portable way to do it though…
on SDL and textmode console driver:
As to the video output; how about adding a real text console driver that
applications can optionally use instead of the dummy driver? Not AAlib -
what I’m talking about is a lowres 8 bit (or 16 bit unicode, or 24 bit
unicode + color…) mode, where each “pixel” is in fact a character.
SDL_Flip() would scan the buffer for changes and update the console
accordingly. Could be a nice tool for creating advanced but portable text
mode user interfaces.
Useful - quite duable too. Any other thoughts here?
I’ve written console emulators a number of times - in svgalib, in GGI, in
graphics hardware under DOS (and linux later), and started porting them
to SDL… The big prob I have is while a fully linux-compatible console
is quite duable it’s hard to make one without using linux code
It’s no big deal really. but what I’m looking for is not to go to an
incredibly -slow- text emulator but to use the resources present and have
the event system working.
- Teunis (Tony) PetersOn Tue, 18 Sep 2001, David Olofson wrote:
On Tuesday 18 September 2001 13:49, Ryan C. Gordon wrote: