pkgsrc/misc/screen/patches/patch-ae
hubertf 6ff50914d7 Update screen to 3.9.13. Changes:
* 29.08.2002  3.09.12 Port to POSIX 1003.1-2001 hosts (Paul Eggert).
 *                     Fixed encoding for reattach password test.
 *                     Fixed NUL characters when encodings are active.
 *                     Fixed silly encodings bugs. Fixed bogus
 *                     oldflayer when a window gets freed.
 *                     Altscreen support by Gurusamy Sarathy.
 *                     Reuse old password in builtin_screenlock.
 *                     -- DISTRIBUTED
 * 05.09.2002  3.09.13 added missing break statement that broke
 *                     the eval command.
 *                     -- DISTRIBUTED

Upgrade requested by dolemite@wuli.nu in private mail.
2002-11-04 22:39:17 +00:00

28 lines
1,002 B
Text

$NetBSD: patch-ae,v 1.4 2002/11/04 22:39:18 hubertf 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 Wed Aug 21 11:24:41 2002
+++ termcap.c Mon Nov 4 23:10:06 2002
@@ -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)
@@ -705,7 +705,7 @@
{
register int n;
- if (tcLineLen + (n = strlen(s)) > 55 && Termcaplen < TERMCAP_BUFSIZE - 4 - 1)
+ if (tcLineLen + (n = strlen(s)) > 69 && Termcaplen < TERMCAP_BUFSIZE - 4 - 1)
{
strcpy(Termcap + Termcaplen, "\\\n\t:");
Termcaplen += 4;