shocking@nswitgould.OZ (Stephen Hocking) (05/17/88)
G'day, (my apologies for not mailing this to comp.unix.microport, we dont have it in Oz) Whilst ferreting through my release notes for microport unix 2.3, and the man pages for console & ansi, I noticed all these wonderful ways of flipping the screen into graphics mode. This usually consisted of escape sequences to do the trick. However, for the hercules card, one had to patch a kernel variable "hercules", to 1. Both patch and nm reported that the symbol hercules did not exist, although there was lots of other interesting stuff in there (like egamodeHERC). My question is, do they have this stuff running yet? And is it as straight forward as sending the appropriate escape sequence to do the switch and then attaching to the shared memory segment and doing our stuff? Has anybody had any experience doing the same with ega & cga cards? Much thanks etc in advance Stephen -- "You are lost in a maze of messy nappies, all alike" UUCP.net: {ukc,mcvax,ucb-cs,uunet}!munnari!nswitgould.oz!shocking ACS.net: shocking@nswitgould.oz {ARPANET,BITNET}: Who knows?
mike@cimcor.UUCP (Michael Grenier) (05/20/88)
> Whilst ferreting through my release notes for microport unix > 2.3, and the man pages for console & ansi, I noticed all these wonderful > ways of flipping the screen into graphics mode. This usually consisted > of escape sequences to do the trick. My question is, > do they have this stuff running yet? And is it as straight forward as > sending the appropriate escape sequence to do the switch and then > attaching to the shared memory segment and doing our stuff? For the hercules card, the escape sequences didn't work and I suspect they won't for the other cards as well. See the first technical point in the 2.3 release notes. I have a complete version of plot(3x) running under Microport 2.3 for the hercules card which I can send you as a beta customer if you want. I'm still completing work on it for the ega and to improve the speed (The System V.2 assembler isn't the best and the docs are worse). To answer your above question, you have to initialize all the registers of the 6845 to force graphics mode. A good source of info on this and the other cards is a book called "Programmer's Guide to PC and PS/2 Video Systems" by Richard Wilton available through Microsoft press. The examples assume a DOS environment though. Once graphics mode is set, the microport drivers leave it alone until reset (actually the drivers never play with those bits). If you can get it into graphics mode, the rest is easy as the shmcreate, attach and other goodies seem to work great. Oh, you also have to grab the I/O port routines out of the /src directory to set the 6845 registers. -Mike Grenier UUCP: {rutgers, ihnp4, amdahl}!bungia!cimcor!mike uunet!rosevax!cimcor!mike AT&T : (612)-464-7382