You are not logged in.

#1 2013-09-23 09:19:33

Torxed
Member
Registered: 2013-01-10
Posts: 202

[SOLVED] SDL - Redirect applications SDL to another /dev/tty#

I'm running multiple applications (for instance Pygame) which relies heavily on the SDL library.
I'd like to switch the main window upon opening to another TTY if possible.

Currently my xorg session is located on /dev/tty0 and so my question is, is it possible to start a application on /dev/tty1 without access to the sourcecode or will i be forced to run full-screen applications in my main xorg session/tty?

Sorry for a fuzzy question.

Last edited by Torxed (2013-09-24 19:33:19)

Offline

#2 2013-09-23 09:59:19

sas
Member
Registered: 2009-11-24
Posts: 155

Re: [SOLVED] SDL - Redirect applications SDL to another /dev/tty#

See https://wiki.archlinux.org/index.php/Ga … e_X_server

(In case your whole reason for wanting to do this is so you can bypass SDL's blocking of [ALT]+[TAB], also read the section "Keyboard grabbing" above that for a simpler / more lightweight solution.)

Last edited by sas (2013-09-23 10:04:22)

Offline

#3 2013-09-24 14:13:23

Torxed
Member
Registered: 2013-01-10
Posts: 202

Re: [SOLVED] SDL - Redirect applications SDL to another /dev/tty#

Thank you, this is perfect.

I'm running a admin interface via SDL and for instance a few games via SDL (which blocks alt+tab, but i'm not to worried about that) but i'd like them not to crash my main xorg session when lockups occur.. so this perfect.
Thanks @sas!

Offline

Board footer

Powered by FluxBB