Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!sco!staceyc From: staceyc@sco.COM (Stacey Campbell) Newsgroups: comp.unix.xenix Subject: Re: Xenix clear screen function.. Message-ID: <2274@scorn.sco.COM> Date: 12 Feb 90 17:19:46 GMT References: <153@mnopltd.UUCP> <4185@helios.TAMU.EDU> <25CFA32B.1493@marob.masa.com> <5677@holston.UUCP> Sender: news@sco.COM Reply-To: staceyc@sco.COM (Stacey Campbell) Organization: The Santa Cruz Operation, Inc. Lines: 30 In article <5677@holston.UUCP> barton@holston.UUCP (Barton A. Fisk) writes: >On the ansi console it's easier to just enter echo "\f\c". This >can be put into a script called clear in /usr/bin and >should clear the screen and move the cursor home. A more portable version of clear can be implemented with the following very short C program. #include main() { initscr(); wclear(stdscr); wrefresh(stdscr); endwin(); } Compile under Xenix with; cc clear.c -o clear -lcurses -ltermlib Many curses implementations will find a way to clear the screen even if that particular capability is not directly supported by the terminal. -- Stacey Campbell _--_|\ {uunet,ucscc,decwrl,att,microsoft,wyse}!sco!staceyc / \ staceyc@sco.com \_.--._/ v