Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!reading!minster!john From: john@minster.york.ac.uk Newsgroups: comp.os.minix Subject: Wanted: Minix-cc(1)-compilable line graphics example Message-ID: <595772331.26840@minster.york.ac.uk> Date: 17 Nov 88 12:18:52 GMT Organization: Department of Computer Science, University of York, England Lines: 50 Would some kind PC expert out there please mail me a *tested* Minix-compilable C program which draws (a straight line, say) on a Hercules-compatible graphic display? Now to a related, but thornier, question. Should Minix have a graphics library, and a `window manager'? I realise that Minix was not intended to include "features grafted onto Unix after the release of Version 7" (shouldn't that be "7th edition"?). I applaud this decision, but feel that with the addition of LAN support, the argument has been weakened somewhat. I would really like to develop graphic programs with Minix. My hope is to support those who will try to prevent the addition of monstrosities like NeWS and Display PostScript to Minix (not enough memory on the PC, anyway :-> ). If the correct way for Minix to go generally is the that of the 8th and 9th editions, then the Blit (Bell Labs Intelligent Terminal) approach - adapted to Minix - may be suitable. This would entail adding a *small* `Display Manager' process (`DM'? - analogous to the Blit's Mpxterm) alongside MM & FS. Arguably the most important routine that would have to be written is bitblt() - and all the different display adaptors in use could cause its author quite a problem :-). Several versions would presumably be needed - as with the hard disk driver. Even so, in his 1987 paper, presented to the Dublin EUUG conference, Bart Locanthi [1] refers to the PC as an architecture which "inherently and actively obstruct[s] the implementation of bitblt() ... the display byte order differs from that of the processor ... and ... the processor isn't very good at dealing with bit-aligned data anyway". I will add that the Hercules graphics adaptor makes things even worse by four-way interleaving display lines in memory. Comments? I'm almost on the side of the `no change' faction; perhaps Minix should stay just as it is now. References 1. "Fast bitblt() with asm() and cpp", Bart Locanthi, Proceedings of the Autumn 1987 EUUG Conference, Trinity College, Dublin, EUUG, September 1987, pp. 243-259. ------------------------------------------------------------------------------- John A. Murdie "For I dipt into the Future, far as human eye could see Comp. Sci. Saw the Vision of the world, and all the wonder that would be Univ. of York Saw the heavens fill with commerce, argosies of magic sails England Pilots of the purple twilight, dropping down with costly bales" ukc!minster!john Alfred, Lord Tennyson