>Suppose some programmer, lets call him "Ralph", was programming with
>cl-sdl, and created a sdl:+fullscreen+ window while typing to his sbcl
>through emacs. Now suppose Ralph's program hits a bug and goes to the
>sbcl debugging prompt. Any neat ideas on how to go see / talk-to that
>prompt while in fullscreen mode?
>
>Ralph's been hitting C-A-f1 and issuing a kill -HUP to sbcl, which
>frees his mouse and keyboard, but kills poor sbcl, and leaves
>my^H^HRalph's X session locked in a tiny, tiny 640x480 video mode.
>
>Any words of wisdom for Ralph? :)
>
>
>
Simplest thing is probably unwind-protect that closes the window when
the stack gets unwound (but I guess that doesn't do much good for
continuable errors). If Ralph doesn't mind only 80 columns, he could
try running the Lisp from the command line on a virtual terminal (with
the DISPLAY variable set to whatever is appropriate). Another thing
you (or I should say Ralph :) might try is some *debugger-hook* stuff
to close or hide (I don't think you can hide/minimize from SDL,
though) the window when the debugger is called. I've never used this
method, but now that I think about it it sounds like the best way to
go.
Vladimir
|