Microport console driver & raw mode programs

Mark E. Mallett mem at zinn.MV.COM
Thu Apr 14 02:14:19 AEST 1988


In article <1509 at bigtex.uucp>, james at bigtex.uucp (James Van Artsdalen) writes:
> IN article <362 at mancol.UUCP>, samperi at mancol.UUCP (Dominick Samperi) wrote:
> > Has anyone experienced console driver problems after using a program
> > (like elm, for example) that sets the tty to raw mode (that is, turns
> > off ICANON under System V)?

I certainly haven't seen that sort of trouble, but it puts me in mind of a
problem that I *do* run across sometimes - that the console driver doesn't
get reset between logins.  For instance, if I run a program that sets a
restricted scrolling region, and that program core dumps (or more likely,
if it is on another system and the telephone line hangs up), I would expect
to be able to log out and log back in and have the console back in a normal
mode.  Not so.  Perhaps someone at Microport could fix this.

>  ... This always
> happens if I call a local BSD4.3 system and claim to be a vt100...

Why do you do that?  You should claim to be an ansi.



> As an aside, I have found that in order to use the terminfo entry supplied on
> uPort's BBS, it is necessary to disable the hpa, ll and vpa capabilities.


The ansi terminfo entry that comes with 2.3 is defective.  I posted a fixed
one a month or two ago.  Don't disable these things, fix them!  I don't know
about the one on Microport's BBS, but the values I use are:

 hpa=\E[%i%p1%dG	(addition of %i)
 vpa=\E[%p1%dd
 ll=??			(what is ll??)

I'm using a modified ansi terminfo entry without any trouble at all.  The
full entry is:

ansi|ansi-24|ansi-s-bot|ansi-bot-s|ansi with bottom status line (for sysline),
	am, hs, mir, msgr, eslok, xon, cols#80, lines#24, wsl#80, 
	cbt=\E[Z, bel=^G, cr=\r, csr=\E[%i%p1%d;%p2%dr, 
	clear=\E[H\E[J\E[3;2m, el=\E[K, ed=\E[J, hpa=\E[%i%p1%dG, 
	cup=\E[%i%p1%d;%p2%dH, cud1=\n, home=\E[H, civis=\E[25;27m, 
	cub1=\b, cnorm=\E[23;27m, cuf1=\E[C, cuu1=\E[A, dch1=\E[P, 
	dl1=\E[M, dsl=\E7\E[?6l\E[25;1H\E[K\E8, smacs=\E[12m, 
	blink=\E[5;3;1m, bold=\E[1m, smir=\E[4h, invis=\E[8m, rev=\E[7m, 
	smso=\E[7m, smul=\E[4m, ech=\E[%p1%dX, rmacs=\E[10m, sgr0=\E[m, 
	rmir=\E[4l, rmso=\E[m, rmul=\E[m, fsl=\E8, is1=\E[=h, 
	is2=\E7\E[1;24r\E8\E[?6h\E[A\n, il1=\E[L, kbs=\b, kdch1=\E[P, 
	kdl1=\E[M, kcud1=\E[B, kf1=\EOP, kf10=\EOY, kf2=\EOQ, kf3=\EOR, 
	kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, 
	khome=\E[H, kich1=\E[@, kil1=\E[L, kcub1=\E[D, knp=\E[V, 
	kpp=\E[U, kcuf1=\E[C, kcuu1=\E[A, dch=\E[%p1%dP, dl=\E[%p1%dM, 
	cud=\E[%p1%dB, ich=\E[%p1%d@, indn=\E[%p1%dS, il=\E[%p1%dL, 
	cub=\E[%p1%dD, cuf=\E[%p1%dC, rin=\E[%p1%dT, cuu=\E[%p1%dA, 
	pfkey=\E[%p1%d;%p2%l%dq%p2%s, pfx=\E[%p1%d;%p2%l%dq%p2%s, 
	rc=\E8, vpa=\E[%p1%dd, sc=\E7, ind=\ED, ht=\t, 
	tsl=\E7\E[?6l\E[25;%p1%dH\E[7;1;55m\E[K, 

-mm-

-- 
Mark E. Mallett  PO Box 4188/ Manchester NH/ 03103 
Bus. Phone: 603 645 5069    Home: 603 424 8129
uucp: mem at zinn.MV.COM  (...decvax!elrond!zinn!mem   or   ...sii!zinn!mem)
BIX: mmallett



More information about the Comp.unix.microport mailing list