Xenix clear screen function..

bill brothers brothers at jetsun.WEITEK.COM
Wed Feb 14 05:26:49 AEST 1990


In article <251 at microm.UUCP> brad at microm.UUCP (Bradley W. Fisher) writes:
>In article <25CFA32B.1493 at marob.masa.com>, daveh at 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 at weitek.com



More information about the Comp.unix.xenix mailing list