Path: utzoo!attcan!uunet!samsung!usc!zaphod.mps.ohio-state.edu!uwm.edu!lll-winken!ubvax!weitek!jetsun!brothers From: brothers@jetsun.WEITEK.COM (bill brothers) Newsgroups: comp.unix.xenix Subject: Re: Xenix clear screen function.. Keywords: n Message-ID: <868@jetsun.WEITEK.COM> Date: 8 Feb 90 18:38:31 GMT References: <4174@helios.TAMU.EDU> Reply-To: brothers@jetsun.WEITEK.COM (bill brothers) Organization: WEITEK, Sunnyvale CA Lines: 33 In article <4174@helios.TAMU.EDU> jfrench@cssuN.tamu.edu (Jeff French) writes: > >Does my Xenix '286 ver. 2.1.1 have a "clear screen" funtion that I am >overlooking? Under MS/DOS the command is "cls", and on SunOS it's "clear". > >Currently I have a script that cats an empty file to the screen. This works >but leaves the cursor in the lower left hand corner of the screen. > >I have RTFM 'till I'm blue in the face. Any suggestions would be appreciated. > >Please excuse my ignorance if their is a blatently simple solution. Thanks! >--------------------------------------------------------------------- > jfrench@cssuN.tamu.edu Jeff French "Gig-Em Aggies" >--------------------------------------------------------------------- Jeff, couldn't make my mailer talk to you... Here is a quick pgm to fix your problem. clear wasn't shipped on XENIX until 2.2... extern char *getenv(); extern char *tgetstr(); main() { char buf[1024], a[1024], *area; area = a; tgetent( buf, getenv("TERM") ); printf("%s", tgetstr("cl", &area) ); } Bill brothers@weitek.COM