[SDL] fbcon: Keysyms wrong & cannot switch VT after hang
slouken at devolution.com
Fri Jun 2 16:14:35 PDT 2000
> 1) The keys are mapped completely wrong. I know, I've got
> a powermac, that's why. I resolved it by editting em all,
> but e.g. libgii does this much nicer, by questioning the
> kernel for the mappings. I don't see this as a big problem
> (I just patch the thing) but maybe someone likes to code
> this kernel questioning to settle this for good.
SDL does query the kernel for key mappings, see FB_vgainitkeymaps()
Is there a better way to do this?
> (Maybe I should ask this somewhere else)
> 2) This is more annoying. Sometimes, when coding, you
> make a mistake. You know, sometimes. The problem is that
> when your program hangs, it's hard to quit. And, in the
> end you resort to kill -9 BUT this is not possible with
> fbcon, as you cannot switch consoles. My current
> solution, debug in X11 and play in fbcon is not very
> pleasing. Any suggestions? Keys in a seperate thread?
> Autokill after a certain idle period?
Try kill -3 instead of kill -9. SDL tries to gracefully quit when
it receives this signal, unless you've overridden it for some reason.
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
More information about the SDL