[comp.sys.att] /etc/termcap entry for Data Generals D460

led@athena.mit.edu (Jay Jungalwala) (02/10/89)

	I was woundering does anyone out there have a termcap entry for a
D460, D200, or D210, that will be compatible with a Unix PC!  As far as I
can tell, /etc/termcap does not include it, so is there anyone out there who
has hooked up a Unix PC to a DG MV/10000 that is running: AOS/VS, I would
really like some info on exactly how you did it!  I can't seem to get
the DG terminals to understand that ^H means backspace it takes it 
as something like a interupt of some kind.  Well please mail me as soon
as you can.  I am in sorta a hurry to get this out of the way! )-:


	Thanks in advance

					-JJ (Dooles)
---------------------------------------------------------------------------
R-E-P-L-E-Y---T-O--> led@wombat.mit.edu   OR   lsrhs!led@wombat.mit.edu
		(Jay Jungalwala)

greg@cantuar.UUCP (G. Ewing) (02/15/89)

Jay Jungalwala (led@athena.mit.edu) writes:
>
>	I was woundering does anyone out there have a termcap entry for a
>D460, D200, or D210, that will be compatible with a Unix PC!  As far as I

Not exactly, but I'm using a Data General 6053 with a Vax running 4.3 BSD,
and the ^H problem sounds very familiar.

The trouble is that the DG and the Unix terminal driver come from different
universes. The idea that ^H is backspace seems to be hardcoded into the
terminal driver. But the DG thinks that ^H means "home the cursor" (all
very mnemonic, but hardly ASCII!)

I have two solutions to the problem. The simple one is to set the terminal
driver as follows:

	stty erase ^Y -ctlecho -crtbs

where ^Y is what the DG "left arrow" key sends. This causes the left arrow
to delete chars from the input buffer and move the cursor to the left.
It won't delete the chars from the screen, however, so you have to remember
that any chars after the cursor aren't really there.

CAVEAT: the above info is for BSDish systems. If yours is SysVish, the
stty settings may be different. Check your manual. What you want to say
is "echo control chars literally, not as ^X, don't send a backspace on
erase, and make the erase character ^Y".

The termcap entry I use for this setup is:

Mg|dg|dg6053|data general 6053:\
        :is=^R:cr=^M:do=^Z:nl=^Z:bl=^G:kl=^Y:kr=^X:ku=^W:kd=^Z:\
        :bw:am:bc=^Y:cm=^P%r%.%.:cl=^L:nd=^X:\
        :up=^W:ce=^K:co#80:li#24:us=^T:ue=^U:so=^\:se=^]:ms:

The models of terminal you mention may differ somewhat.

My other solution involves a process that sits between the terminal and
the shell which, among other things, translates ^H chars appropriately.
It also lets you map the function keys to arbitrary strings. If anyone's
interested, I'll see what arrangements can be made about sending the
source. It's quite expensive to send stuff from this corner of the planet.

Greg Ewing				Internet: greg@cantuar.uucp
Spearnet: greg@nz.ac.cantuar		Telecom: +64 3 667 001 x8357
UUCP:	  ...!{watmath,munnari,mcvax,vuwcomp}!cantuar!greg
Post:	  Computer Science Dept, Univ. of Canterbury, Christchurch, New Zealand
Disclaimer: The presence of this disclaimer in no way implies any disclaimer.

haque@umn-cs.CS.UMN.EDU (Samudra E. Haque) (02/16/89)

In article <1066@cantuar.UUCP> greg@cantuar.UUCP (G. Ewing) writes:
_Jay Jungalwala (led@athena.mit.edu) writes:
_>
_>	I was woundering does anyone out there have a termcap entry for a
_>D460, D200, or D210, that will be compatible with a Unix PC!  As far as I
_

If you change your Dasher terminals into ANSI compatible mode, then
you will be able to use more capabilities - including the standard
backspace/delete characters. Here is a termcap description for a DG460
type terminal in ANSI mode, we use it around here and has been very
useful. Credits go to (brsmith@umn-cs.cs.umn.edu) for slaving away on
this one. More information can be possibly found from the DG manuals
and also from DG support or any other DG/UX site..

# D460 ansi termcap - from DG's manual for the d460
# Created by Brian R. Smith 4/4/88, updated 9/9/88
# Does not work correctly with talk (At least) in 4.3BSD.
# DOES work correctly with vi (which is broken).
d460a|d460-ansi|d470a|d470-ansi|Data General d460 or d410 in ansi mode:\
	:le=\E[D:do=\E[B:nd=\E[C:up=\E[A:dl=\E[M:dc=\E[P:\
	:bs:bl=^G:cr=^M:LE=\E[%dD:DO=\E[%dB:RI=\E[%dC:UP=\E[%dA:\
	:cm=\E[%i%d;%dH:ho=\E[H:DC=\E[%dP:DL=\E[%dM:me=\E[0m\EW:\
	:cd=\E[J:cl=\E[2J:ce=\E[K:do=\E[B:IC=\E[%d@:AL=\E[%dL:\
	:po=\E[5i:pf=\E[4i:ps=\E[i:rs=\Ec:up=\EM:SR=\E[%dT:\
	:SF=\E[%dS:mb=\E[5m:mh=\E[2m:mr=\E[7m:us=\E[4m:mp=\EV:\
	:am:bw:co#80:li#24:ms:kh=\E[\110:ku=\E[\101:kd=\E[\102:\
	:kr=\E[\103:kl=\E[\104:ue=\E[0m:sr=\E[T:sf=\E[S:\
	:ic=\E[@:al=\E[L:nw=^J:nl=\E[B:so=\E[7m:se=\E[0m:

########################################################################
The rest of the termcaps are possibly from DG/UX as shipped, we don't
use DG/UX anymore- but the termcaps are valid for some terminals in DG
mode. Use at your own risk - I don't think DG would mind if we spread
this around. Disclaimer -> Having slaved at DG/UX 3.x for a year and
half - and finally calling it quits...I've seen more sides of DG customer 
support than you want to. If you DG people get mad - then call me, and
I will send a cancel note the net. Otherwise you could probably help
by releasing your latest termcaps to the net..
dg|605x|6053|Data General DASHER 605x:\
	:am:bc=^y:cl=^l:cm=^p%r%.%.:nd=^x:up=^w:ce=^k:us=^t:\
	:vs=^s:ve=^r:ue=^u:so=^\:se=^]:kl=^y:kr=^x:ku=^w:kd=^z:kh=^h:\
	:ko=cl,ce:li#24:co#80:is=^r:do=^z:ul:nl=^m^j:k0=\036q:k1=\036r:\
	:k2=\036s:k3=\036t:k4=\036u:k5=\036v:k6=\036w:k7=\036x:k8=\036y:k9=\036z:
d100|Data General DASHER 100:\
	:tc=605x:
d200|Data General DASHER 200:\
	:tc=605x:
d400|Data General DASHER 400:\
	:am:bc=^y:al=\036FH:ce=^k:cl=^l:\
	:cm=^p%r%.%.:co#80:dc=\036K:dl=\036FI:\
	:do=^z:ic=\036J:is=^r:\
	:kb=\0177:kd=^Z:kh=^h:kl=^y:kr=^x:\
	:ku=^w:li#24:nd=^x:nl=^m^j:se=\036E:so=\036D:\
	:us=^t:ue=^u:ul:up=^w:k0=\036q:k1=\036r:\
	:k2=\036s:k3=\036t:k4=\036u:k5=\036v:k6=\036w:k7=\036x:k8=\036y:k9=\036z:
d410|Data General DASHER 410:\
	:tc=d400:
d450|Data General DASHER 450:\
	:tc=d400:
d460|Data General DASHER 460:\
	:tc=d400:
d470|Data General DASHER 470:\
	:tc=d400:
d211|Data General DASHER 211:\
	:am:bc=^y:cl=^l:cm=4^p%r%.%.:nd=^x:up=^w:ce=^k:cd=\036FF:xo:us=^t:\
	:ue=^u:so=^\:se=^]:kl=^y:kr=^x:ku=^w:kd=^z:kh=^h:\
	:ko=cl,ce:li#24:co#80:is=^r:do=^z:ul:nl=^m^j:k0=\036q:k1=\036r:\
	:k2=\036s:k3=\036t:k4=\036u:k5=\036v:k6=\036w:k7=\036x:k8=\036y:k9=\036z:
d210|Data General DASHER 210:\
	:tc=d211:
bmd|ds7500|Data General DS 7500 system console on a bitmapped display:\
	:cl=^L^P\200\200:ho=^P\200\200:tc=605x:
-- 
Samudra E. Haque
Computer Science Laboratories, Computer Science Department
University of Minnesota, Minneapolis, MN 55455.
(1)-(612)-625-0876 || haque@umn-cs.cs.umn.edu || haque@umn-cs.UUCP