mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
28 lines
1023 B
Plaintext
28 lines
1023 B
Plaintext
$NetBSD: patch-ae,v 1.6 2015/02/13 04:44:40 rodent Exp $
|
|
|
|
Don't pollute G1 to allow 8-bit encondings.
|
|
|
|
The original code made the TERMCAP env var longer than 1023 bytes,
|
|
which causes problems. This is a quick hack but works with our termcap.
|
|
|
|
--- termcap.c.orig 2014-04-26 10:58:35.000000000 +0000
|
|
+++ termcap.c
|
|
@@ -80,7 +80,7 @@ static const char TermcapConst[] = "\\\n
|
|
\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)
|
|
@@ -826,7 +826,7 @@ char *s;
|
|
{
|
|
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;
|