Newsgroups: comp.sys.atari.st Path: utzoo!utgpu!jarvis.csri.toronto.edu!csri.toronto.edu!lansd From: lansd@csri.toronto.edu (Robert Lansdale) Subject: Tek codes needed for Uniterm.... Message-ID: <8803110230.AA01924@hoskin.csri.toronto.edu> Organization: University of Toronto, CSRI Distribution: na Date: Thu, 10 Mar 88 21:30:34 EST 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.