… | |
… | |
78 | |
78 | |
79 | =item I need a termcap file entry. |
79 | =item I need a termcap file entry. |
80 | |
80 | |
81 | One reason you might want this is that some distributions or operating |
81 | One reason you might want this is that some distributions or operating |
82 | systems still compile some programs using the long-obsoleted termcap |
82 | systems still compile some programs using the long-obsoleted termcap |
83 | (Fedora Core's bash is one example) and rely on a termcap entry for |
83 | library (Fedora Core's bash is one example) and rely on a termcap entry |
84 | C<rxvt-unicode>. |
84 | for C<rxvt-unicode>. |
85 | |
85 | |
86 | You could use rxvt's termcap entry with resonable results in many cases. |
86 | You could use rxvt's termcap entry with resonable results in many cases. |
87 | You can also create a termcap entry by using terminfo's infocmp program |
87 | You can also create a termcap entry by using terminfo's infocmp program |
88 | like this: |
88 | like this: |
89 | |
89 | |
… | |
… | |
91 | |
91 | |
92 | Or you could use this termcap entry, generated by the command above: |
92 | Or you could use this termcap entry, generated by the command above: |
93 | |
93 | |
94 | rxvt-unicode|rxvt-unicode terminal (X Window System):\ |
94 | rxvt-unicode|rxvt-unicode terminal (X Window System):\ |
95 | :am:bw:eo:km:mi:ms:xn:xo:\ |
95 | :am:bw:eo:km:mi:ms:xn:xo:\ |
96 | :co#80:it#8:li#24:\ |
96 | :co#80:it#8:li#24:lm#0:\ |
97 | :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\ |
97 | :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\ |
98 | :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\ |
98 | :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\ |
99 | :RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=^O:al=\E[L:\ |
99 | :RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=\E(B:al=\E[L:\ |
100 | :as=^N:bl=^G:cd=\E[J:ce=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[C:rc=\E8:\ |
109 | :nd=\E[C:rc=\E8:sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:\ |
110 | :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\ |
110 | :st=\EH:ta=^I:te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:\ |
111 | :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\ |
111 | :up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ |
112 | :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\ |
112 | :vs=\E[?25h: |
113 | :vs=\E[?25h: |
113 | |
114 | |
114 | =item Why does C<ls> no longer have coloured output? |
115 | =item Why does C<ls> no longer have coloured output? |
115 | |
116 | |
116 | The C<ls> in the GNU coreutils unfortunately doesn't use terminfo to |
117 | The C<ls> in the GNU coreutils unfortunately doesn't use terminfo to |