Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!usc!apple!voder!pyramid!weitek!jetsun!brothers From: brothers@jetsun.WEITEK.COM (bill brothers) Newsgroups: comp.unix.xenix Subject: Re: Xenix clear screen function.. Message-ID: <873@jetsun.WEITEK.COM> Date: 13 Feb 90 18:26:49 GMT References: <153@mnopltd.UUCP> <4185@helios.TAMU.EDU> <25CFA32B.1493@marob.masa.com> <251@microm.UUCP> Reply-To: brothers@jetsun.WEITEK.COM (bill brothers) Organization: WEITEK, Sunnyvale CA Lines: 32 In article <251@microm.UUCP> brad@microm.UUCP (Bradley W. Fisher) writes: >In article <25CFA32B.1493@marob.masa.com>, daveh@marob.masa.com (Dave Hammond) writes: >> >> On the console screen only, you can echo a Control-L to clear the screen >> and move the cursor home. >> >> Alternatively, on the console and other ANSI terminals (vt100, vt220, ...) >> you can echo the 6 char sequence ESC [ H ESC [ J to clear the screen >> and move the cursor home. The "right :*) way is using termcap/info"... Here is a bitty pgm for that... extern char *getenv(); extern char *tgetstr(); main() { char buf[1024], a[1024], *area; area = a; tgetent( buf, getenv("TERM") ); printf("%s", tgetstr("cl", &area) ); } There but the grace of god go i... Bill brothers@weitek.com