Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!nereid!robert From: robert@nereid.jpl.nasa.gov (Robert Angelino) Newsgroups: comp.lang.c Subject: Displaying non-printable characters on a SPARC (or any other Unix system) Message-ID: <6197@mahendo.Jpl.Nasa.Gov> Date: 2 May 91 18:02:10 GMT Sender: news@mahendo.Jpl.Nasa.Gov Reply-To: robert@triton.JPL.NASA.GOV Organization: Technology Development Group (JPL) Lines: 22 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@triton.jpl.nasa.gov \____|et |_|ropulsion |_____\aboratory (818) 354-9574