[Coco] OS-9 graphics using C

Gene Heskett gene.heskett at verizon.net
Tue Apr 20 05:38:48 EDT 2010


On Tuesday 20 April 2010, Todd Wallace wrote:
>Hey guys,
>
>So I have been continuing to experiment and learn to write simple programs
> for OS-9 in C.  I have reached the point where I'd like to manipulate the
> screen, such as background/foreground colors and locating the cursor in
> specific parts, etc.  The documentation I have checked so far is
> "Microware C Compiler User’s Guide" which explains about standard
> input/output, compiling, etc.  I also have been through "The complete
> Rainbow guide to os-9 level II. volume 1: a beginners guide to windows". 
> This has taught me how to use the "display, wcreate, iniz" commands etc in
> OS9 to manipulate the screen.  But I still lack the knowledge of how to
> perform those commands from C. And finally "The NitrOS-9" level 2
> windowing system" which again taught me alot about manipulating windows in
> os9 but not how to do any of that stuff from C.  I suspect I will somehow
> need to use the _os9 system call in C, but I have no reference as to the
> possible commands I can do with that.  Any help is appreciated as always!
> :-)
>
>- Todd Wallace

All of that, in the getstt and setstt calls is defined in the manuals for 
both levels, Todd.  Some of it is sort of a read between the lines thing, but 
its all there.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Do one thing and do it well.

	- Andrew Grover, ACPI maintainer on Linux-power.



More information about the Coco mailing list