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