Subject: Re: bin/7198: recent xterm termcap entry flakes out screen
To: None <mason@acheron.middleboro.ma.us>
From: ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>
List: netbsd-bugs
Date: 03/20/1999 00:00:09
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;