home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14915 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.5 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!concert!borg!strauss!lari
  2. From: lari@strauss.cs.unc.edu (Humayun Lari)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Keeping the cursor visible
  5. Message-ID: <14961@borg.cs.unc.edu>
  6. Date: 2 Sep 92 21:54:21 GMT
  7. References: <Btwnq8.LMv@mentor.cc.purdue.edu> <15119@claris.com>
  8. Sender: news@cs.unc.edu
  9. Organization: The University of North Carolina at Chapel Hill
  10. Lines: 20
  11.  
  12. In article <15119@claris.com> wombat@claris.com (Scott Lindsey) writes:
  13. >In article <Btwnq8.LMv@mentor.cc.purdue.edu>, neath@brazil.psych.purdue.edu (Ian Neath) writes:
  14. >> 
  15. >> writes to the TextEdit record, the cursor is hidden by (I assume) a
  16. >> call to ObscureCursor.  Is it OK to keep calling ShowCursor ...
  17. >
  18. >ShowCursor won't actually show the cursor if it's only obscured.  I don't
  19. >think there's a legal way to unobscure a cursor, however, setting the low-
  20. >memory global CrsrNew = 0xFF forces it to really redraw.
  21.  
  22. If you're in charge of the writes to the TextEdit record (i.e. using TEKey),
  23. you could use TEInsert instead to prevent TextEdit from trying to be polite
  24. and calling ObscureCursor. Of course, TEInsert may be a bit slower, but in
  25. practice it seems to make little difference. And it's definitely *much* cleaner
  26. than having the cursor flicker every time a character is appended to the TE
  27. record (especially if you're porting a MS-DOS-based language interpreter that
  28. thinks a row of dots on the screen is a beautiful depiction of its progress).
  29.  
  30. Humayun Lari
  31. (lari@cs.unc.edu)
  32.