Displaying non-printable characters on a SPARC (or any other Unix system)

John Gordon gordon at osiris.cso.uiuc.edu
Fri May 3 07:15:27 AEST 1991


robert at nereid.jpl.nasa.gov (Robert Angelino) writes:

>I'm writing some code that utilizes a primitive tty interface.
>I would like to display non-printable characters on my
>unix system.  I know in DOS this can be done like so
>	printf("%c",175);	(which happens to display a double >)


	This works in DOS because DOS has an "extended character set", that
is, it has 256 defined characters instead of only 128.  This is definitely
*not* portable to other machines.


---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu        #include <disclaimer.h>
          gordon at cerl.cecer.army.mil       #include <clever_saying.h>



More information about the Comp.lang.c mailing list