Xenix clear screen function..
bill brothers
brothers at jetsun.WEITEK.COM
Fri Feb 9 05:38:31 AEST 1990
In article <4174 at helios.TAMU.EDU> jfrench at 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 at 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 at weitek.COM
More information about the Comp.unix.xenix
mailing list