Okay, that did the trick, thanks!
There's several things I had to do to get SDL working on the iLiad:
- I had to patch SDL to work with the StaticGray visual.
Code:
--- src/video/x11/SDL_x11modes.c.old 2008-10-25 22:55:29.000000000 -0400
+++ src/video/x11/SDL_x11modes.c 2008-10-25 22:57:40.000000000 -0400
@@ -782,6 +782,7 @@
} else {
add_visual(this, depth_list[i], PseudoColor);
add_visual(this, depth_list[i], StaticColor);
+ add_visual(this, depth_list[i], StaticGray);
}
}
}
- I had to set the SDL_VIDEO_X11_WMCLASS environment variable to "sh".
- It winds up that SDL doesn't really have support for StaticGray colors. So what I wound up doing was writing a routine that converts 24 bit color to 8 bit gray. Once I do that by hand, SDL takes care of drawing it to the string.
- I have to take care of refreshing the screen myself. But that's simple... I just open a udp socket to localhost:50555, and write "!0,3,0" to it.
But programming the iLiad in pygame is now possible, with some caveats.