[comp.sys.amiga.tech] Stupid Questions

dykimber@phoenix.Princeton.EDU (Daniel Yaron Kimberg) (11/16/88)

I have some questions which probably belong on comp.sys.amiga.stupid, but I
have no other way of getting the answers so I'm posting here.  Please email
any replies, if it bounces, nevermind - I'm sure I'll get plenty of replies.
I've tried looking through the fish disks for the appropriate sort of code, but
couldn't find anything that was quite right.  I'm using c.
1) how do I print text to the cli window in other than the default pen colors?
   I know this is trivial, but I don't have the faintest clue how to go about
   it.  I tried using the command sequence stuff that's supposed to do that
   with the console device, but it didn't do anything.  (I'm using conman, but
   I figured it probably adheres to the same specs.)
2) speaking of which (i.e. console device command sequences), rob peck's book
   and the rkm's are at odds in terms of how to represent them, for changing
   text attributes.  Peck says use hex 3x and 4x to change the colors (well,
   implies this - the numbers are embedded in a line of hex), rkm's say use
   ascii 3 ascii x, ascii 4 ascii x.  rkm's make more sense, i think, but it's
   not listed in errata for the book.  Which is right?
3) how do i get a pointer to the window associated with stdin and stdout, i.e.
   the cli window?
4) how do i get a pointer to my parent process structure?

Thanks for any help - I'm certain there is a trivial solution, but it's not
mentioned anyplace obvious in rkm, peck, mortimore, or the amigados manual.
And remember, email only, even if it bounces.

                                                 -Dan