[comp.mail.elm] Elm 2.2 + terminfo

bhoule@se-sd.SanDiego.NCR.COM (Bill Houle) (08/23/90)

I have a user who has his own vt100 terminfo file.  It works fine
with vi and mush in full-screen mode, but Elm does not seem to
like it.  Operations such as saving options or viewing a message
cause elm to catch a signal and exit gracefully.  Changing the pager
does not affect things.  Using the system term entry works fine.

The terminfo file compiles under tic with no errors.  The suspect
terminfo entry is included for your reading enjoyment.  Any ideas?

[Elm 2.2 PL16, NCR Tower 32/800, V.3]

#
altkeys|Alternate function key sequences,
	kf54=\E0, kf55=\E1, kf56=\E2, kf57=\E3, kf58=\E4,
	kf59=\E5, kf60=\E6, kf61=\E7, kf62=\E8, kf63=\E9,
#
vt100|d1|DEC vt100,
	cols#80, lines#24, am, clear=\E[H\E[2J\E[1;24r,
	cup=\E[%i%p1%d;%p2%dH, el=\E[K, ed=\E[J,
	cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD, cuf=\E[%p1%dC,
	kcub1=\EOD, cub1=\E[D, kcuf1=\EOC, cuf1=\E[C, kcuu1=\EOA, cuu1=\E[A,
	kcud1=\EOB, cud1=\E[B, kbs=^H, bel=^G, cr=^M, ind=^J,
	smso=\E[1;37;41m, rmso=\E[0;1;36;44m, smul=\E[4m,
	rmul=\E[0;1;36;44m, is1=\E[0;1;36;44m, rs1=\E[0;1;36;44m,
	bold=\E[1;37;44m, rev=\E[0;34;47m, blink=\E[5m,
	sgr0=\E[0;1;36;44m\E(B, invis=\E[8m,
	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smkx=\E[?1h\E=, rmkx=\E[?1l\E>,
	tbc=\E[3g, hts=\EH, home=\E[H, khome=^A, ht=^I, ri=\EM, it#8,
	xenl, xon, sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
	smacs=\E(0, rmacs=\E(B, acsc=xxqqllkkmmjjttuuvvwwnn,
	kf0=\EOp, kf1=\EOq, kf2=\EOr, kf3=\EOs, kf4=\EOt,
	kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy,
	use=altkeys,
#

--
Bill Houle                       bhoule@se-sd.SanDiego.NCR.COM
NCR SE-San Diego                 (619) 693-5593

bruce@sonyd1.Broadcast.Sony.COM (Bruce Lilly) (08/24/90)

In article <3738@se-sd.SanDiego.NCR.COM> bhoule@se-sd.SanDiego.NCR.COM (Bill Houle) writes:
>I have a user who has his own vt100 terminfo file.  It works fine
>with vi and mush in full-screen mode, but Elm does not seem to
>like it.  Operations such as saving options or viewing a message
>cause elm to catch a signal and exit gracefully.  Changing the pager
>does not affect things.  Using the system term entry works fine.
>
>The terminfo file compiles under tic with no errors.  The suspect
>terminfo entry is included for your reading enjoyment.  Any ideas?
>
>[Elm 2.2 PL16, NCR Tower 32/800, V.3]
>
>#
>altkeys|Alternate function key sequences,
 [ ... ]

I had a similar problem once. Try trimming the "Alternate ....  sequences"
to something shorter.  I ran into the same symptoms (no
complaints from tic, but SEGV or SIGBUS at runtime under Elm)
with a terminfo entry which had a rather verbose last name entry.

I suspect that the problem is either 1) overflow of a fixed
buffer in Elm (40 chars, I think), or 2) a bug in the
terminfo/termcrap emulation.  I haven't determined which --
shortening the name made the problem disappear.

-- 
    Bruce Lilly, Product Manager,        | bruce@sonyd1.Broadcast.Sony.COM
    Digital Television Tape Recording,   | uunet!{sonyusa,vmp}!sonyd1!bruce
    Sony Communications Products Co.,    | lilb@sony.compuserve.com (slow)
    Teaneck, NJ 07666  |  Telephone: 1(201)833-5693   | FAX: 1(201)833-9279