Well, seeing that everyone was talking about MGR and using it as
possible alternative to X and all that jazz, I decided to take a look
at the MGR port for Minix, and see how easy/hard it would be to adapt
for Linux.
So far, I've noticed one major sticking point, and a few minor ones.
The major one is the screen-handling code, of which I tried to use the
gasblit code, but there is a rather major sticking point - screen.h is
missing, and from the looks of it, screen.c won't work anyways.
Okay, so that part is either going to need to be rewritten, or I've
been taking a look at the code from the Xenix port of MGR. Neither
option looks like very much fun, especially since I have little to no
experience with graphics programming.
A more minor sticking point is that most of the terminal stuff is
written to use the BSD sgttyb structures. I've worked with some of it
to convert it to Linux/POSIX termios stuff, and that isn't that tough,
I'm just not overly familiar with how it all works. (As a side note,
wouldn't it be nice if Linux supported _both_ methods?)
I don't have anything working yet, so I can't really say what other
problems there might be. If someone has the know-how about how Linux
handles the screen and graphics, they would probably have a pretty
good shot at porting MGR. The rest of the points are stuff like bcopy
vs memcpy and the like.
It looks very much like the xenix blit code is a bust, since it's
chewing away at my memory right now, with reckless abandon. Sigh.
Maybe the gasblit stuff won't be too hard to adapt, but I'm not
familiar with how to switch the video mode, etc, under Linux. Anyone?
--
Jim Winstead Jr. (CSci '95) | "Catch a fish!"
Harvey Mudd College | -Geddy Lee,
Disclaimer: Mine, not theirs! | January 20, 1992