First post, by rien333
I'm trying to communicate between the X11 window manager and DOSBox, and so far I have no luck. What I'm trying to do is exactly the same as this guy http://richard.to/programming/wolfenstein-3d-ai-part-3.html, that is send keystrokes and get screen data from X11. His works shows that this is possible for DOSBox, but my efforts have led to nothing. The main problem seems to be that I can't launch DOSBox in X11 window manager, but he can, as he is using a X11 based OS. What I've tried so far is launching DOSBox (and DOSBox-x) from the XQuartz terminal, and trying to get the window ID with xdotool (a tool that is able to communicate with X11 windows http://www.semicomplete.com/projects/xdotool/). This works for all X11 applications that I launch but not for DOSBox. I tried this with XQuartz 2.7.8 - 2.7.10 (beta, only released yesterday!). I think this is because DOSBox is build for the native OS X window manager, and therefore is not able to launch in X11 modus. Could I be right in this, and is it possible to build DOSBox in such a way that it uses the X11 window manager (it's possible for Linux, so I think it is)? I am able to build DOSBox myself (although I do not know how to build with X11 support) and I've installed DOSBox via homebrew.