home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!TSENGR.dnet.ge.com!TEFFTA
- From: TEFFTA@TSENGR.dnet.ge.com (Andrew Tefft)
- Newsgroups: comp.sys.apple2
- Subject: Hyperc & mousetext
- Message-ID: <9207220141.AA18057@aitgw.ge.com>
- Date: 22 Jul 92 01:41:57 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 45
-
- Does anyone have experience printing mousetext with hyperc?
-
- I don't have very good documentation on using mousetext, but it seems
- that I should be able to do this in hyperc:
-
- printf("This is an open apple:%c%cA%c%c\n",15,27,24,14);
-
- (the 14 may be wrong, but it is intended to turn off the inverse mode
- that was turned on by the 1).
-
- Actually, that works. However, the following doesn't:
-
- vidinv(); /* actually a macro to putchr(0x0f) */
- printf("%cAA%c\n",27,24);
- vidnorm();
-
- What I get is an inverse A followed by an open apple. It seems that I just
- can't print mousetext as the first character in the string!
-
- What am I doing wrong here? Is there another way to print mousetext?
-
- An equivalent statement in applesoft seems to work fine:
-
- print chr$(15);chr$(27);"AA";chr$(24)
-
- prints two apples.
-
- I first tried the C route this way:
-
- vidinv();
- putchr(27);
- putstr("AA");
- putchr(24);
- vidnorm();
-
- And that didn't work either, so I know it's not something silly like printf
- being messed up. What could it possibly be? I'm starting to feel silly
- and very frustrated.
-
- Any ideas, please mail me directly and I will summarize. I'm sending this
- both to hyperc-l and info-apple.
-
- Andy Tefft
- teffta@tsengr.dnet.ge.com
-
-