summaryrefslogtreecommitdiff
path: root/misc/screen/patches/patch-ae
blob: d4ad6fb3a1406b3d81394eb327f63cd8a1f795da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ae,v 1.3 2001/08/18 09:53:02 wiz Exp $

 1. Don't pollute G1 to allow 8-bit encondings.

 2. The original code make the TERMCAP env var
    longer than 1023 bytes, which cause problems.
    This is a quick hack but works with our termcap.

--- termcap.c.orig	Tue May  8 11:02:24 2001
+++ termcap.c
@@ -75,7 +75,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)
@@ -707,7 +707,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;