home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apple2 / 17706 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.6 KB

  1. 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
  2. From: TEFFTA@TSENGR.dnet.ge.com (Andrew Tefft)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Hyperc & mousetext
  5. Message-ID: <9207220141.AA18057@aitgw.ge.com>
  6. Date: 22 Jul 92 01:41:57 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 45
  11.  
  12. Does anyone have experience printing mousetext with hyperc?
  13.  
  14. I don't have very good documentation on using mousetext, but it seems
  15. that I should be able to do this in hyperc:
  16.  
  17. printf("This is an open apple:%c%cA%c%c\n",15,27,24,14);
  18.  
  19. (the 14 may be wrong, but it is intended to turn off the inverse mode
  20. that was turned on by the 1).
  21.  
  22. Actually, that works. However, the following doesn't:
  23.  
  24. vidinv();  /* actually a macro to putchr(0x0f) */
  25. printf("%cAA%c\n",27,24);
  26. vidnorm();
  27.  
  28. What I get is an inverse A followed by an open apple. It seems that I just
  29. can't print mousetext as the first character in the string!
  30.  
  31. What am I doing wrong here? Is there another way to print mousetext?
  32.  
  33. An equivalent statement in applesoft seems to work fine:
  34.  
  35. print chr$(15);chr$(27);"AA";chr$(24)
  36.  
  37. prints two apples.
  38.  
  39. I first tried the C route this way:
  40.  
  41. vidinv();
  42. putchr(27);
  43. putstr("AA");
  44. putchr(24);
  45. vidnorm();
  46.  
  47. And that didn't work either, so I know it's not something silly like printf
  48. being messed up. What could it possibly be? I'm starting to feel silly
  49. and very frustrated.
  50.  
  51. Any ideas, please mail me directly and I will summarize. I'm sending this
  52. both to hyperc-l and info-apple.
  53.  
  54. Andy Tefft
  55. teffta@tsengr.dnet.ge.com
  56.  
  57.