[net.info-terms] Terminfo source for Tek4105

robt@molihp.UUCP (07/14/86)

References:
Sender: 
Reply-To: robt@molihp.UUCP (Robert L Thurlow)
Followup-To: 
Distribution: 
Organization: Moli Energy Ltd., Vancouver B.C., CANADA
Keywords: 

  Here is a  terminfo  entry  for the Tek 4105  that I use daily on a HP
9000/550  running  HP-UX 5.01.  There are some funny  things I must warn
you about this:  we have been liberal with the interpretation of some of
this  stuff, and have  outright  stolen  some  codes  away from what the
designer intended.  We are quite aware of the problems this could get us
into, but we did it anyway.  Here is a summary:

1) We use the function key *LABELS* (lf0 - lf7) to hold the strings sent
   by *shifted* versions of the function keys.  On all of our terminals,
   we have eight function keys which can return different codes with and
   without  shift.  There is space  reserved for 64 function  key string
   pointers  in a  terminfo  entry, and it would be great to use some of
   these, but the current version of "tic" only stores kf0 - kf9, and if
   it would store more, the "termlib"  routines  wouldn't  tell you what
   the were anyway.  Along with this, we have a custom library to figure
   out what is coming  from the  keyboard  and  return  keycodes  to our
   application.  Grrrr....

2) The  initialization  strings  set the  function  keys to use the same
   codes  on  all   terminals,   both  regular  and  shifted   versions.
   Application  keypad  mode is turned off, and the joydisk is set up to
   send codes like VT100  cursor  keys.  The  keypad is also  partly set
   back to numbers from whatever may have used it before.  (Our database
   ignores terminfo and does funny things sometimes.)

3) We do our boxes and lines with the graphics  character set on all our
   terminals.  The smacs and rmacs strings are used to set and reset the
   graphics set as the alternate  character set for this purpose,  which
   is appropriate.  But what code gives what line-drawing character?  We
   encode this in 12 bytes using the "mc0" terminfo string.  This string
   is  *supposed*  to be used for the string to print the screen, and it
   seemed  expendable to get this.  The codes to get line-drawing  chars
   are  encoded in this  order:  T-junction  pointing  down,  T-junction
   pointing up, t-junction  pointing left,  t-junction  pointing  right,
   cross-junction,  horizontal  line,  vertical  line, top left  corner,
   bottom left corner, top right corner,  bottom right corner, and solid
   block.  This is common enough on our terminals  that I wanted it done
   with  "terminfo";  perhaps  something  like  this  should  be in  the
   "terminfo" definition.

4) Most of the fields have  parameters  only when needed, since the 4105
   ANSI command parser uses sensible defaults if parameters are omitted.

   Anyway, here is the entry for the 4105.

-------------------------------Cut here---------------------------------
4105|Tek4105|Tektronics 4105,
	am, xenl, da, db, xon, 
	cols#80, it#8, lines#30, lm#49, vt#3, 
	cbt=\E[Z, bel=^G, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
	tbc=\E[3g, clear=\E[H\E[2J, el=\E[K, ed=\E[J, 
	cup=\E[%i%p1%d;%p2%dH, cud1=^J, home=\E[H, cub1=^H, 
	cuf1=\E[C, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
	smacs=^N, blink=\E[5m, bold=\E[1m, rev=\E[7m, 
	smso=\E[7m, smul=\E[4m, rmacs=^O, sgr0=\E[m, 
	rmso=\E[m, rmul=\E[m, is1=\E%!0\EKW1\E%!1\E>\E[?1l, is2=\E%!0\EKDH02A;C0\EKDH12A;C1\EKDH22A;C2\EKDH32A;C3\EKDH42A;C4\EKDH52A;C5\EKDH62A;C6\EKDH72A;C7\EKDH82A;C8\EKDH92A;C9\EKDH:2A;C:\EKDH;2A;C;\EKDH<2A;C<\EKDH=2A;C=\EKDH>2A;C>\EKDH?2A;C?\E%!1\E>, 
	is3=\E%!0\EKDH(3A;E;D1\EKDH*3A;E;D2\EKDH'3A;E;D3\EKDH)3A;E;D4\EKDG$3A;E;E:\EKDG*3A;E;D8\EKDC.1C7\EKDC/1C8\EKDD 1C9\EKDD#1B=\EKDD,1C7\EKDD-1C8\EKDD.1C9\EKDE!1B=\EKDE*3A;D?E0\EKDE+3A;D?E1\EKDE,3A;D?E2\EKDE/3A;D?E3\EKDF(3A;E;D0\EKDF)3A;E;D<\EKDF*3A;E;D:\EKDF-3A;D8\E%!1\E)0, ich1=\E[@, il1=\E[L, kbs=^H, 
	kclr=\E[Z, kctab=\EH, kdch1=\E[@, kdl1=\E[L, 
	kcud1=\E[B, kel=\E[J, ked=\EOR, kf0=\E0, 
	kf1=\E1, kf10=\EQ, kf2=\E2, kf3=\E3, 
	kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, 
	kf8=\E8, kf9=\E9, khome=\E[H, kich1=\EOP, 
	kil1=\EOQ, kcub1=\E[D, kcuf1=\E[C, khts=\EOS, 
	kcuu1=\E[A, lf0=\E8, lf1=\E9, lf2=\E:, 
	lf3=\E;, lf4=\E<, lf5=\E=, lf6=\E>, 
	lf7=\E?, cud=\E[%p1%dB, cub=\E[%p1%dD, cuf=\E[%p1%dC, 
	cuu=\E[%p1%dA, mc0=wvutnqxlmkja, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, rc=\E8, 
	sc=\E7, ind=^J, ri=\EM, sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
	hts=\EH, ht=^I, ka1=\E;, ka3=\E<, 
	kb2=\E=, kc1=\E>, kc3=\E?, 
-------------------------------Cut here---------------------------------

# UUCP : ...!ubc_vision!molihp!robt			Robert Thurlow	   #
<DISCLAIMER : my thoughts are my own, and are void where prohibited by law.>
# "There was something fishy aboout the butler.  I think he was a Pisces,  #
#  probably working for scale."				- Nick Danger      #