[comp.sys.att] Need termcap help for 7300

jcbst3@cisunx.UUCP (James C. Benz) (12/21/88)

I have a 7300 Unix PC at home and a couple of 3B2's at work.  The 3B's
are connected to an ISN system, and I use the 7300 as a dial up terminal
to access them and develop software.  I've always wished I could get a 
workable full screen window through the phone manager, but no dice.  Finally
got source for a full screen Unix, and decided to use cu instead to call up
the ISN.  The only problem is the 3B's don't have a termcap/terminfo entry
for the 7300.  I've been using vt100, but sometimes get escape sequences
showing up on the screen when using vi and other formatted screen programs.
Vt100 *almost* works.  What I need is a termcap/terminfo entry to be
installed on the 3B's to make them talk nicely to the 7300, and instructions
on how to install it.  Can I use some (other than vt100) existing termcap
on the 3B, or does anyone have a termcap for the 7300?  Any help greatly
appreciated.

mvadh@cbnews.ATT.COM (andrew.d.hay) (12/22/88)

In article <14605@cisunx.UUCP> jcbst3@unix.cis.pittsburgh.edu (James C. Benz) writes:
[]
>			What I need is a termcap/terminfo entry to be
>installed on the 3B's to make them talk nicely to the 7300, and instructions
>on how to install it.  Can I use some (other than vt100) existing termcap
>on the 3B, or does anyone have a termcap for the 7300?  Any help greatly
>appreciated.


the builtin terminfo for the s4 is shared with tty5425/att4425 terminal.
it isn't complete, but it has the basics.  we've worked out much better ones
here.

you can install your own termcap file or terminfo database anywhere on the
system -- that's what the 'TERMCAP' and 'TERMINFO' environment variables are
for!

if you have infocmp, you can also set TERMINFO, then set TERMCAP=`infocmp -C`.

-- 
Andrew Hay		+------------------------------------------------------+
Holistic Specialist	| I will design a computer for you, so powerful that   |
AT&T-BL Ward Hill MA	| organic life will form part of its operational matrix|
mvuxq.att.com!adh	+------------------------------------------------------+

avr@mtgzz.att.com (a.v.reed) (12/23/88)

In article <14605@cisunx.UUCP>, jcbst3@cisunx.UUCP (James C. Benz) writes:
> the ISN.  The only problem is the 3B's don't have a termcap/terminfo entry
> for the 7300.  I've been using vt100, but sometimes get escape sequences
> showing up on the screen when using vi and other formatted screen programs.
> Vt100 *almost* works.  What I need is a termcap/terminfo entry to be

Most 3b2 termcaps have an "s4" entry for the 7300/3b1 under cu.
"s4" stands for "Safari 4", the pre-release codename of the 7300.
If you don't have "s4", try "ansi".

			Adam Reed (avr@mtgzz.ATT.COM)

jlw@lznv.ATT.COM (J.L.WOOD) (12/23/88)

Why not just copy the 7300/UNIXPC/S4 termcap or terminfo entry
from the unix pc itself?

NB: All the official versions of the ATE that I know of have a bug in that
the automatic margins (am) option doesn't work.  Therefore the ansi entry
doesn't quite work right.  This might be your problem.  Works ok when you're
using HDB-cu though.

Helpful utilities for terminfo work standard on the unix-pc at 3.51 are:

	captoinfo(1m)
	tic(1m)
	infocmp(1m)

All are described in the appendix to the curses/terminfo programmer's guide
which, I believe, comes with the utilities package.

Joe wood
jlw@lznv.ATT.COM

bdb@becker.UUCP (Bruce Becker) (12/25/88)

In article <14605@cisunx.UUCP> jcbst3@unix.cis.pittsburgh.edu (James C. Benz) writes:
>Vt100 *almost* works.  What I need is a termcap/terminfo entry to be
>installed on the 3B's to make them talk nicely to the 7300, and instructions
>on how to install it.  Can I use some (other than vt100) existing termcap
>on the 3B, or does anyone have a termcap for the 7300?  Any help greatly
>appreciated.


Look in /etc/termcap in your 3B1 for the "s4|PC7300|unixpc|3b1|Safari 4"
entry.

The last few lines contain 'tam' info, recognizble by the caps used in
the parameter names. Remove these, & use the rest as a perfectly valid
termcap entry useful everywhere.


Cheers,

-- 
   _  _/\	Bruce Becker	Toronto, Ont.
   \`o O|	Internet: bdb@becker.UUCP, bruce@gpu.utcs.toronto.edu
    \(")/	BitNet:   BECKER@HUMBER.BITNET
---mm-U-mm---	"The OSF is suffering from Penix envy" - Rocky Raccoon

sheldon@quest.UUCP (Scott S. Bertilson) (01/05/89)

  I've found it to be true that the Terminal Emulator starts up with line
wrap disabled in UNIXPC emulation, but found that I can enable it by:
	echo '\033[=1w\c'
from the host.
-- 

Scott S. Bertilson   ...uunet!bungia!quest!sheldon
			scott@poincare.geom.umn.edu

jbm@uncle.UUCP (John B. Milton) (01/06/89)

I have modified the terminfo definition for the 7300 to include all forms of
the escape sequences in escapes(7). I also changed standout to my liking
(bold instead of reverse). The most notable differences are the n line versions
of some of the escape sequences. These are: cub, cud, cuf, cuu, dch, dl, ich,
il, indn, rin. Vi does use these, and it really makes a difference over slow
lines. I also have added the acsc that someone else posted, for doing vt100
line drawing stuff (nice for VAX/VMeSsy-DOS stuff). To use this last one, you
have to load the correct font into slot 1. This can be done at boot in /etc/rc:
# Make vt100 line drawing the alternate font
sfont /usr/lib/wfont/BLD.ft 1
setf /usr/lib/wfont/BLD.ft 1

After this has been compiled with tic, it can be "termcapped" with "infocmp -C"

# revised terminfo for 7300
s4|7300|unixpc|pc7300|PC7300|unix_pc|3b1|AT&T UNIX PC Model 7300,
	am, km, mir, msgr,
	cols#80, it#8, lines#24,
	acsc=+h\,g.e-fjjkkllmmnnqqttuuvvwwxx, bel=^G,
	bold=\E[1m, civis=\E[=1C, clear=\E[H\E[2J,
	cnorm=\E[=C, cr=\r, cub=\E[%p1%dD, cub1=\b,
	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
	cvvis=\E[=C, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
	home=\E[H, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
	il1=\E[L, ind=\n, indn=\E[%p1%dS,
	is2=\E[H\E[2J\E[;10m, kbs=\b, kcub1=\E[D, kcud1=\E[B,
	kcuf1=\E[C, kcuu1=\E[A, kf1=\EOc, kf2=\EOd, kf3=\EOe,
	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
	nel=\EE, rev=\E[7m, ri=\EM, rin=\E[%p1%dT,
	rmacs=\E[10m, rmso=\E[m, rmul=\E[m, sgr0=\E[;10m,
	smacs=\E[11m, smso=\E[1m, smul=\E[4m,

John
-- 
John Bly Milton IV, jbm@uncle.UUCP, n8emr!uncle!jbm@osu-cis.cis.ohio-state.edu
(614) h:294-4823, w:764-2933;  Got any good 74LS503 circuits?