Article View: comp.sys.amiga.tech
Article #10289Stupid Questions
From: Daniel Yaron Kimberg
Date: Tue, 15 Nov 1988 19:18
Date: Tue, 15 Nov 1988 19:18
25 lines
1990 bytes
1990 bytes
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
Technical Details
Message-ID:
<4452@phoenix.Princeton.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!princeton!phoenix!dykimberShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!princeton!phoenix!dykimber From: dykimber@phoenix.Princeton.EDU (Daniel Yaron Kimberg) Newsgroups: comp.sys.amiga.tech Subject: Stupid Questions Keywords: console CLI questions stupid windows text attributes moron Message-ID: <4452@phoenix.Princeton.EDU> Date: 15 Nov 88 19:18:50 GMT Organization: Princeton University, NJ Lines: 25