Subject: Re: bin/7198: recent xterm termcap entry flakes out screen
To: ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>
From: David Brownlee <abs@anim.dreamworks.com>
List: netbsd-bugs
Date: 03/19/1999 10:01:54
	Another approach might be to modify NetBSD's tgetent() to
	effectively s/:[ \t\n]+:/:/ when the entry is greater than
	1024 bytes long. More work, but more generally useful :)

		David/absolute

                  -=-  and team B will be... Kenny.  -=-

On Sat, 20 Mar 1999, ITOH Yasufumi wrote:

> In article <199903191424.XAA16346@alpha070.aist-nara.ac.jp>
> yasufu-i@is.aist-nara.ac.jp writes:
> 
> > I'm going to make a patch for screen.
> 
> Here is a quick hack.
> I'll add this to pkgsrc tree if no objection.
> 
> 
> --- termcap.c.orig	Thu Nov 26 01:12:23 1998
> +++ termcap.c	Fri Mar 19 23:38:57 1999
> @@ -74,7 +74,7 @@
>  \t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\
>  \t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\
>  \t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\
> -\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:";
> +\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E(B:";
>  
>  char *
>  gettermcapstring(s)
> @@ -669,7 +669,7 @@
>  {
>    register int n;
>  
> -  if (tcLineLen + (n = strlen(s)) > 55 && Termcaplen < TERMCAP_BUFSIZE + 8 - 4)
> +  if (tcLineLen + (n = strlen(s)) > 69 && Termcaplen < TERMCAP_BUFSIZE + 8 - 4)
>      {
>        strcpy(Termcap + Termcaplen, "\\\n\t:");
>        Termcaplen += 4;
>