From: hcp@csx.cciw.ca (H.C. Pulley)
Subject: Re: Problem with serial terminals
Organization: Canada Centre for Inland Waters
Date: Fri, 2 Oct 1992 13:15:40 GMT

This article and the preceding one about the beta newsreader may have been sent
twice.  If so, then I apologize for the wasted bandwidth.  I received an error
so I decided to send them again.

In article <9209271216.45@rmkhome.UUCP> rmk@rmkhome.UUCP (Rick Kelly) writes:
>In article <scott_silverstein-250992091237@lasagne.med.yale.edu>
 scott_silverstein@yccatsmtp.ycc.yale.edu (Scot Silverstein MD) writes:
>>Bad problem noted with Coherent 4.0.1 on my machine (a Leading Tech
>>386sx/16
>>with Phoenix BIOS) when using a serial terminal.
>>
>>Using a vt52 or H19 terminal emulation (and the proper 'TERM=' in
>>.profile), Microemacs, (and DTE, I've also noted), do not work properly.
>>The proper escape sequences are not sent, leaving a very fouled-up screen,
>>and in the case of microemacs, the terminal is left in a bizarre state that
>>not even "stty sane" recovers from.
>>
>>Strangely, ELLE (compiled under 3.x) and ELVIS (the one supplied with 4.0)
>>seem to work _fine_ under the exact same conditions!
>>
>>What is going on??
>
>I have the same problem with my Z19.

I had these problems with my XT running terminal emulation software.  No
terminal type worked properly for programs compiled for TERMINFO but those
compiled for TERMCAP worked fine.

I talked to Udo Munk.  He said that the terminfo entries were incomplete.  He
sent me a correct vt100 terminfo file.  When compiled, the XT works fine as a
terminal.

You should get terminfo entries from somewhere (another SysV machine?).  If
they are complete, your problems should go away.

BTW, the ansipc terminfo entry is also incomplete.  Some entries set the screen
color to black on black text, which is invisible!

Here are the ansipc and vt100 terminfos that Udo gave me (you don't mind me
posting them, do you Udo?)

ansipc.ti:
--- start of source ---
ap|ansipc|ansi personal computer,
	bw, am, cols#80, lines#24, it#8, xmc#0,
	bel=^G, cr=^M, csr=\E[%i%p1%d;%p2%dr,
	clear=\E[2O, el=\E[K, ed=\E[O, hpa=\E[%i%p1%d`, cup=\E[%i%p1%d;%p2%dH,
	cud1=\E[B, civis=\E[1v, cub1=\E[D, cnorm=\E[v, cuf1=\E[C, cuu1=\E[A,
	cvvis=\E[v, dl1=\E[M, blink=\E[5m, bold=\E[1m, rev=\E[7m,
	smso=\E[7m, rmso=\E[m, smul=\E[4m, rmul=\E[m, sgr0=\E[m,
	is1=\E[1;1f\E[m, il1=\E[L, kbs=^H, kdch1=\E[P, kcud1=\E[B,
	khome=\E[H, kll=\E[24H, kcub1=\E[D, knp=\E[U, kpp=\E[V, kcuf1=\E[C,
	kcuu1=\E[A, nel=^M^J, rs1=\E>, rc=\E8, vpa=\E[%i%p1%dd,
	kf1=\E[1x, kf2=\E[2x, kf3=\E[3x, kf4=\E[4x, kf5=\E[5x,
	kf6=\E[6x, kf7=\E[7x, kf8=\E[8x, kf9=\E[9x, kf10=\E0x,
	sc=\E7, ind=\E[S, ri=\E[T,
	acsc=a\260f\370j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263~\372,
--- end of source ---

vt100.ti:
----- start of source -----
vt100|vt100-am|dec vt100,
	cr=^M, cud1=^J, ind=^J, bel=^G, cols#80, lines#24,
	clear=\E[;H\E[2J$<50>, cub1=^H, am, cup=\E[%i%p1%d;%p2%dH$<5>,
	cuf1=\E[C$<2>, cuu1=\E[A$<2>, el=\E[K$<3>, ed=\E[J$<50>,
	smso=\E[7m$<2>, rmso=\E[m$<2>, smul=\E[4m$<2>, rmul=\E[m$<2>,
	bold=\E[1m$<2>, rev=\E[7m$<2>, blink=\E[5m$<2>, sgr0=\E[m$<2>,
	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smkx=\E[?1h\E=, rmkx=\E[?1l\E>,
	rf=/usr/lib/tabset/vt100, home=\E[H,
	kcuu1=\EOA, kcud1=\EOB, kcuf1=\EOC, kcub1=\EOD, kbs=^H,
	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, ht=^I, ri=\EM$<5>,
	vt#3, xenl, xon, sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
----- end of source -----

Harry

--
          hcp@csx.cciw.ca           | This message    | It takes all kinds,
    hcpiv@grumpy.cis.uoguelph.ca    | released to the | and to each his own.
------------------------------------| PUBLIC DOMAIN.  | This thought in mind,
 Stay away from the DOS side, Luke! |                 | I walk alone.
-- 
          hcp@csx.cciw.ca           | This message    | It takes all kinds,
    hcpiv@grumpy.cis.uoguelph.ca    | released to the | and to each his own.
------------------------------------| PUBLIC DOMAIN.  | This thought in mind,
 Stay away from the DOS side, Luke! |                 | I walk alone.
Newsgroups: comp.os.coherent