[comp.unix.questions] tek4025

dce@mips.UUCP (01/16/88)

In article <16937@gatech.edu> ken@gatech.edu (Ken Seefried iii) writes:
>1)  Dose anyone have a termcap for one of these?
>
>2)  Has anyone out there programmed one of these beasts and would like to 
>share horror stories?

I think that standard BSD releases have a couple of entries: one for
curses and one for other stuff.

At one time, the claim was that the 4025 was "broken" and that it
couldn't work with curses.  I decided to take a look at this, and found
that curses (or maybe termlib) was outputting some sequences in the
wrong order.

Dave Seifert (snoopy@tekecs.TEK.COM) or Steve Hutchinson
(hutch@tekecs.TEK.COM) may be able to locate the fix (the fix will
have been checked in by me, guys) and maybe post it to the net.

-- 
David Elliott		dce@mips.com  or  {ames,prls,pyramid,decwrl}!mips!dce

ken@gatech.edu (Ken Seefried iii) (01/16/88)

--

I just inherited a Tek 4025 graphics terminal and the associated IEEE488
plotter...

Couple 'o questions:

1)  Dose anyone have a termcap for one of these?

2)  Has anyone out there programmed one of these beasts and would like to 
share horror stories?

3)  Deos anyone know if you can add something other than the plotter and
the tape drives the this thing?

4)  Could someone point me to someone in Tex that knows a lot about these
things?

Thanks for the net.help....

______________________________________________________________________________
Kenneth J. Seefried iii			|	Internet:	ken@gatech.edu
P.O. Box 30104				|	Bitnet:		ccastks@gitvm1
School of Information & Computer Science|	uucp:
Georgia Tech, Atlanta GA 30332		|	...!{backbone site}!gatech!ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gwyn@brl-smoke.UUCP (01/16/88)

In article <16937@gatech.edu> ken@gatech.edu (Ken Seefried iii) writes:
>I just inherited a Tek 4025 graphics terminal and the associated IEEE488
>plotter...

The Tektronix 4025 is undoubtedly one of the most poorly-designed
terminals of all time.  What happens on its display is dependent
on what you're doing on the keyboard!  This makes effective full-
duplex use virtually impossible.

>1)  Dose anyone have a termcap for one of these?

#
# Tektronix 4025A
# The following status modes are assumed for normal operation (replace the
# initial "!" by whatever the current command character is):
#	!COM 29			# NOTE: changes command character to GS (^])
#	^]DUP
#	^]ECH R
#	^]EOL
#	^]RSS T
#	^]SNO N
#	^]STO 9 17 25 33 41 49 57 65 73
# Other modes may be set according to communication requirements.
# If the command character is inadvertently changed, termcap can't restore it.
# Insert-character cannot be made to work on both top and bottom rows.
# Clear-to-end-of-display emulation via !DLI 988 is too groady to use, alas.
# There also seems to be a problem with vertical motion, perhaps involving
# delete/insert-line, following a typed carriage return.  This terminal sucks.
# No delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
X5|tek4025a|Tektronix 4025A:\
	:al=^K^]ili;:am:bl=^G:bt=^]bac;:bw:CC=^]:cl=^]era;^J^]rup;:co#80:\
	:cr=^M:ct=^]sto;:da:db:DC=^]dch %d;:dc=^]dch;:DL=^]dli %d;:dl=^]dli;:\
	:DO=^]dow %d;:do=^J:it#8:LE=^]lef %d;:le=^H:li#34:nd=^]rig;:\
	:RI=^]rig %d;:\
	:rs=!com 29^]del 0^]rss t^]buf^]buf n^]cle^]dis^]dup^]ech r^]eol\
^]era g^]for n^]pad 203^]pad 209^]sno n^]sto 9 17 25 33 41 49 57 65 73\
^]wor 0;:\
	:SF=^]dow %d;:sf=^J:ta=^I:UP=^]up %d;:up=^K:xo:\
	:ce=^]dch 80;:ch=\r^]rig %d;:\
	:bs:pt:xx:

billr@tekred.TEK.COM (Bill Randle) (01/21/88)

Although some people hate the old 4025's with a passion, I actually
rather liked it.  I did have some problems - mainly that you can't
do direct cursor movements in the "normal" (monitor) viewing area,
but I really liked the scroll memory.  Also, if you have the
graphics memory option it will do 4025 graphics, as well as standard
Plot-10 (4010/4014) style graphics.

Here's the termcap I used to use.  One is for a vanilla 4025, another
if you have a 4025a and yet another if you have a 4025a with the
Mod VT, which makes it look like a VT-100 or VT-52.  I had the
numeric keypad programmed so that the 2 4 6 and 8 keys move the
cursor and the 1 and 7 keys move forward and back a page in vi and
the 3 and 9 keys move the internal scroll memory forward and back
a half screen full (I think - it's been awhile since I used one).

The initialization files are below the termcap stuff - this sets the
command character to control-underscore (the default '!' is particularly
bad on Unix systems).
-------------------------------------------
X8|tek4025a|4025a|tektronix 4025a:\
        :am:bs:da:db:pt:li#34:co#80:cl=^_dli100\r\n\n:up=^K:nd=rig\r:\
        :cd=^_dli50\r:al=^Kili\r:dl=dli\r:\
        :dc=^_dch\r:im=ich\r:ei=^F\n^K:nl=^F\n:\
	:if=/usr/local/lib/p4025a:\
        :vs=^_expand m1\r:ve=^_expand m2\r:
X5|4025|tek4025|tektronix 4025:\
        :am:bs:da:db:pt:li#34:co#80:cl=^_dli100\r\n\n:up=^K:nd=^_rig\r:\
        :cd=^_dli50\r:al=^K^_ili\r:dl=^_dli\r:\
	:if=/usr/local/lib/p4024:\
        :ve=^_dliu100\r\n\n:dc=^_dch\r:im=^_ich\r:ei=^F\n^K:nl=^F\n:\
        :ti=^_lea p2 /j/^_lea p4 /h/^_lea p1 06^_lea p6 /l/^_lea p8 /k/^_lea p7 02^_lea pt /ZZ/\r:\
        :te=^_lea p2^_lea p4^_lea p6^_lea p8^_lea p1^_lea p7^_lea pt /next/ 13\r:
# put 4025a in ansi mode (^_ansi) first
X9|4025vt|4025a-modvt|tektronix 4025a w/mod vt:\
        :co#80:li#24:as=\E(0:ae=\E(B:cs=\E[%i%2;%2r:al=\E[L:dl=\E[M:\
        :aw:bs:cl=50\E[;H\E[2J:cm=\E[%i%2;%2H:nd=\E[C:up=\E[A:\
        :ce=3\E[K:cd=50\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
        :ti=\E[?1l\E[?7h\E[?8h\E=:ks=\E=:ke=\E>:\
        :ku=\EOx:kd=\EOr:kr=\EOv:kl=\EOt:kh=\EOu:pt:sr=5\EM:\
        :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOM:k6=\EOq:k7=\EOs:k8=\EOw:k9=\EOy:
Xw|4025rogue|25r:am:cl=^_era w\r:bs:up=^K:nl=^F\n:cm=^_jum%i%d,%d\r:co#80:li#33:\
        :ti=^_wor33h\r:te=^_wor0\r:

#---------------------------------------------
initialization files:
(change the '^_' character pair to a real control-underscore character
 in both files)
====p4025=====
!com 31
^_sto 9 17 25 33 41 49 57 65 73
^_lea p9 161 161 161 161 161 161 161 161 161 161 161 161 161 161 161 161 161
^_lea p3 162 162 162 162 162 162 162 162 162 162 162 162 162 162 162 162 162
^_lea 170 168 137 161 166 166
^_lea 174 04
4025 programmed

====p4025a=====
programming 4025
!com 31 
^_sto 9 17 25 33 41 49 57 65 73
^_lea M1  31"lea p0 ''"   31"lea p1 06"   31"lea p2 'j'"                                  31"lea p4 'h'"  31"lea p5 'H'"  31"lea p6 'l'"                                  31"lea p7 02"   31"lea p8 'k'"  31"lea pt 'ZZ'"                                 31"lea f1 '$'"  31"lea f2 'd$'" 31"lea f3 ')'"                                  31"lea f4 'd)'" 31"lea 170"     31"lea 174 04"  13
^_lea M2  31"lea p0"      31"lea p1"      31"lea p2"                                      31"lea p4"      31"lea p5"      31"lea p6"                                      31"lea p7"      31"lea p8"                                                      31"lea pt 'n' 13"               31"lea f1"                                      31"lea f2"      31"lea f3"      31"lea f4"   13
^_lea M3  31"lea p9 161 161 161 161 161 161 161 161 161 161 161 161 161 161 161 161 161"  31"lea p3 162 162 162 162 162 162 162 162 162 162 162 162 162 162 162 162 162"  31"lea 170 168 137 161 166 166" 31"lea 174"  13
^_exp M2 ^_exp M3  

hutch@hammer.TEK.COM (Stephen Hutchison) (01/28/88)

In article <1341@quacky.UUCP> dce@quacky.UUCP (David Elliott) writes:

+I think that standard BSD releases have a couple of entries: one for
+curses and one for other stuff.
+
+At one time, the claim was that the 4025 was "broken" and that it
+couldn't work with curses.  I decided to take a look at this, and found
+that curses (or maybe termlib) was outputting some sequences in the
+wrong order.
+
+Dave Seifert (snoopy@tekecs.TEK.COM) or Steve Hutchinson
+(hutch@tekecs.TEK.COM) may be able to locate the fix (the fix will
+have been checked in by me, guys) and maybe post it to the net.


Sorry, folks, but this change is not a matter of one or two lines,
it seems to be at least half the (curses) program.  Tek management does not
want us to post significant portions of any code which falls under Tek
copyright.  We're supposedly SELLING the stuff, you see.

Hutch

ray@micomvax.UUCP (Ray Dunn) (02/02/88)

In article <7112@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>The Tektronix 4025 is undoubtedly one of the most poorly-designed
>terminals of all time.

>What happens on its display is dependent on what you're doing on the keyboard!

Can we have this one logged as the best well MEANT one-liner of the year
so far (:-)!!!!