home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / atari / st / tech / 5534 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!cunews!csi.uottawa.ca!news
  3. From: cbbrowne@csi.uottawa.ca (Christopher Browne)
  4. Subject: Re: Extended characters with printf()
  5. Message-ID: <1992Nov8.043510.15882@csi.uottawa.ca>
  6. Sender: news@csi.uottawa.ca
  7. Nntp-Posting-Host: prgh
  8. Organization: Dept. of Computer Science, University of Ottawa
  9. References: <HyewTB4w165w@sys6626.bison.mb.ca>
  10. Date: Sun, 8 Nov 92 04:35:10 GMT
  11. Lines: 24
  12.  
  13. In article <HyewTB4w165w@sys6626.bison.mb.ca> marco@sys6626.bison.mb.ca (John Perry) writes:
  14. >Does anyone know how to use the extended character set with printf()? For 
  15. >example, how would I go about printing the "arrow" symbol?
  16.  
  17. Well, the "simple but probably wrong" answer is:
  18.  
  19. The "right arrow" is character #3 (in hex, octal, or decimal).
  20.  
  21. Try something like:
  22.    printf("\003");
  23.  
  24. (which assumes an octal argument.)
  25.  
  26. Unfortunately, \003 does something else that I don't recall offhand,
  27. since it's one of the ASCII control codes.
  28.  
  29. I expect that what you REALLY want is some sort of XBIOS call.  I'd
  30. love to hear what the correct call is for this purpose.
  31.  
  32. -- 
  33. Christopher Browne                |     PGP 2.0 key available
  34. cbbrowne@csi.uottawa.ca           |===================================
  35. University of Ottawa              |  The Personal Computer:  Colt 45
  36. Master of System Science Program  |  of the Information Frontier
  37.