Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (/32767) Newsgroups: comp.unix.questions Subject: Re: Clear screen (system call) Keywords: Clear Screen, TTY Message-ID: <2575@awdprime.UUCP> Date: 15 Jun 90 22:25:33 GMT References: <5683@aplcen.apl.jhu.edu> Sender: news@awdprime.UUCP Reply-To: tif@reed.UUCP (/32767) Distribution: comp.unix.questions Organization: IBM AWD, Austin, TX Lines: 14 In article <5683@aplcen.apl.jhu.edu> trw@aplcen.apl.jhu.edu (Weil timothy) writes: > what is a simple 'C' Unix system call for clearing > the terminal. my guess is that it's buried somewhere > in curses.h... No (correct) answer will consist of just a system call but If that's all you intend to do (and you're not doing it every 2 seconds): system("tput clear"); /* this assumes a terminfo system */ Anything else doesn't fit the description of "simple". Paul Chamberlain | I do NOT represent IBM tif@doorstop, sc30661@ausvm6 512/838-7008 | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif