comparison src/termcap-1-fixes.patch @ 4611:504cb71a29a9

termcap: use cygwin term def from termcap pkg, not msys
author John W. Eaton <jwe@octave.org>
date Thu, 01 Mar 2018 13:25:38 -0500
parents cd94e0f04e87
children
comparison
equal deleted inserted replaced
4610:56a53d1315c0 4611:504cb71a29a9
15 is echoed to the terminal window when Readline tputs it to 15 is echoed to the terminal window when Readline tputs it to
16 the terminal. 16 the terminal.
17 17
18 diff -uNr a/termcap.c b/termcap.c 18 diff -uNr a/termcap.c b/termcap.c
19 --- a/termcap.c 2002-02-25 12:59:21.000000000 -0500 19 --- a/termcap.c 2002-02-25 12:59:21.000000000 -0500
20 +++ b/termcap.c 2018-02-28 11:11:16.340155579 -0500 20 +++ b/termcap.c 2018-03-01 13:16:17.960763846 -0500
21 @@ -120,6 +120,32 @@ 21 @@ -120,6 +120,26 @@
22 } 22 }
23 #endif /* not emacs */ 23 #endif /* not emacs */
24 24
25 + 25 +
26 +#define INTERNAL_TERMINAL \ 26 +#define INTERNAL_TERMINAL \
27 +"cygwin:\ 27 + "cygwin:\
28 + :am:bs:eo:mi:ms:ut:xn@:op=\E[39;49m:xo:\ 28 + :am:bs:mi:ms:xo:\
29 + :Co#8:co#80:it#8:li#25:pa#64:\ 29 + :Co#8:NC#3:co#80:li#25:pa#64:\
30 + :&7=^Z:@7=\\E[4~:kh=\\E[1~:kH=\\E[4~:AB=\\E[4%dm:AF=\\E[3%dm:\ 30 + :@7=\\E[4~:AB=\\E[4%dm:AF=\\E[3%dm:F1=\\E[23~:F2=\\E[24~:\
31 + :AL=\\E[%dL:DC=\\E[%dP:DL=\\E[%dM:F1=\\E[23~:F2=\\E[24~:\
32 + :F3=\\E[25~:F4=\\E[26~:F5=\\E[28~:F6=\\E[29~:F7=\\E[31~:\ 31 + :F3=\\E[25~:F4=\\E[26~:F5=\\E[28~:F6=\\E[29~:F7=\\E[31~:\
33 + :F8=\\E[32~:F9=\\E[33~:FA=\\E[34~:IC=\\E[%d@:K2=\\E[G:\ 32 + :F8=\\E[32~:F9=\\E[33~:FA=\\E[34~:S2=\\E[11m:S3=\\E[10m:\
34 + :Km=\\E[M:S2=\\E[11m:S3=\\E[10m:Sb=\\E[%+(m:Sf=\\E[%+^^m:\ 33 + :ac=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030,\021+^P0\333p\304r\304y\363z\362{\343|\330}\234:\
35 + :ac=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030\054\021+^P0\333:\ 34 + :ae=\\E[10m:as=\\E[11m:cl=\\E[2J:cm=\\E[%i%d;%dH:\
36 + :ae=\\E[10m:al=\\E[L:as=\\E[11m:bl=^G:cd=\\E[J:\ 35 + :do=\\E[B:ho=\\E[H:is=\\E[m\\E[?7h:k1=\\E[[A:k2=\\E[[B:k3=\\E[[C:\
37 + :cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:cr=^M:cs=\\E[%i%d;%dr:\
38 + :ct=\\E[3g:dc=\\E[P:dl=\\E[M:do=^J:ei=\\E[4l:ho=\\E[H:\
39 + :ic=\\E[@:im=\\E[4h:k1=\\E[[A:k2=\\E[[B:k3=\\E[[C:\
40 + :k4=\\E[[D:k5=\\E[[E:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:\ 36 + :k4=\\E[[D:k5=\\E[[E:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:\
41 + :k9=\\E[20~:k;=\\E[21~:kD=\\E[3~:kI=\\E[2~:kN=\\E[6~:\ 37 + :k9=\\E[20~:k;=\\E[21~:kD=\\E[3~:kI=\\E[2~:kN=\\E[6~:kP=\\E[5~:\
42 + :kP=\\E[5~:kb=^H:kd=\\E[B:kh=\\E[1~:kl=\\E[D:kr=\\E[C:\ 38 + :kd=\\E[B:kh=\\E[1~:kl=\\E[D:kr=\\E[C:ku=\\E[A:le=^H:mb=\\E[5m:\
43 + :ku=\\E[A:le=^H:mb=\\E[5m:md=\\E[1m:me=\\E[0;10m:\ 39 + :md=\\E[1m:me=\\E[0;10m:mk=\\E[8m:mr=\\E[7m:nd=\\E[C:\
44 + :mr=\\E[7m:nd=\\E[C:nw=^M^J:op=\\E[37;40m:r1=\\Ec:rc=\\E8:\ 40 + :op=\\E[37;40m:pk=\\E[0;%+\:;\"%s\":rc=\\E[u:\
45 + :sc=\\E7:se=\\E[m:sf=^J:so=\\E[7m:sr=\\EM:st=\\EH:ta=^I:\ 41 + :..sa=\\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m:\
46 + :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\ 42 + :sc=\\E[s:se=\\E[m:so=\\E[7m:u6=\\E[%i%d;%dR:u7=\\E[6n:ue=\\E[m:\
47 + :u6=\\E[%d;%dR:u7=\\E[6n:u8=\\E[?6c:u9=\\E[c:ue=\\E[24m:\ 43 + :up=\\E[A:us=\\E[4m:"
48 + :up=\\E[A:us=\\E[4m:vb=\\E[?5h\\E[?5l:ve=\\E[?25h:\
49 + :vi=\\E[?25l:";
50 + 44 +
51 /* Looking up capabilities in the entry already found. */ 45 /* Looking up capabilities in the entry already found. */
52 46
53 /* The pointer to the data made by tgetent is left here 47 /* The pointer to the data made by tgetent is left here
54 @@ -464,7 +490,7 @@ 48 @@ -464,7 +484,7 @@
55 #ifdef INTERNAL_TERMINAL 49 #ifdef INTERNAL_TERMINAL
56 /* For the internal terminal we don't want to read any termcap file, 50 /* For the internal terminal we don't want to read any termcap file,
57 so fake it. */ 51 so fake it. */
58 - if (!strcmp (name, "internal")) 52 - if (!strcmp (name, "internal"))
59 + if (!strcmp (name, "cygwin")) 53 + if (!strcmp (name, "cygwin"))