[comp.sys.atari.st] Tek codes needed for Uniterm....

lansd@csri.toronto.edu (Robert Lansdale) (03/11/88)

    I added a few simple lines of code to my graphics package to
output what I hope are Tektronix compatible escape sequences to 
draw lines. The intention was that I could then work on my package
from home using Uniterm (Ver 1.8, 20).
    
    I couldn't find a Tektronix manual anywhere so I scavenged the 
codes from Gnuplot's term.c program. But after compiling the code
and trying it remotely using Uniterm nothing worked. Uniterm
went into graphics mode and I could see the cursor blinking 
rapidly, but no lines! I then went off looking for docs for
Uniterm on local BBSs but had no luck finding them. So here I
am (last resort!).

    Could someone point out if the following escape sequences
are correct for Uniterm (The gnuplot code was for Tek4040
compatible terminals):

	printf("\033\014");	/* Clear screen */
	.
	.
	somewhere else...
	.
	.
	/* Draw line from (x1, y1) to (x2, y2) */
	if (cur_device == TEK) {
		printf("%c", '\035');
		printf("%c", 0x20 | ((y1 >> 5) & 0x1f));
		printf("%c", 0x60 | (y1  & 0x1f));
		printf("%c", 0x20 | ((x1 >> 5) & 0x1f));
		printf("%c", 0x60 | (x1  & 0x1f));
		printf("%c", 0x20 | ((y2 >> 5) & 0x1f));
		printf("%c", 0x60 | (y2  & 0x1f));
		printf("%c", 0x20 | ((x2 >> 5) & 0x1f));
		printf("%c", 0x60 | (x2  & 0x1f));
		return;
	}

     One assumption my package makes (via a user command) is that
the range of co-ordinates for Uniterm's Tek emulator is from
(0,0) to (639, 399) while in monochrome.