Displaying non-printable characters on a SPARC (or any other Unix system)
Robert Angelino
robert at nereid.jpl.nasa.gov
Fri May 3 04:02:10 AEST 1991
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 will not work on my SPARC. I've found out (through tracing) that
the following clears the screen:
print("\33[H\33[2J"); (this also happens to work on VMS)
As you can see this is not what I would call intuitive. Has anyone out
there discovered how I can go about doing this using simple printf
statements??
thanks in advance
--
- ------ - Robert Angelino
| | | ---- \ | | ms T-1704L
| | | | \ | | | 4800 Oak Grove Drive
| | | | -- | | | Pasadena, CA 91109
---| | | | \__/ | |___ robert at triton.jpl.nasa.gov
\____|et |_|ropulsion |_____\aboratory (818) 354-9574
More information about the Comp.lang.c
mailing list