vim quits and cygwin window contents not restored

Randall R Schulz rrschulz@cris.com
Thu Apr 3 20:53:00 GMT 2003


Chuck,

I was meaning to write this up earlier, but work keeps getting in the way.

When I used your new termcap entry, "less" (when it's displaying output piped to it via its standard input but not when it is given a file name argument) tells me "WARNING: terminal is not fully functional".

Here's an excerpt, with context, from my "/etc/termcap":

-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
# See ansi.sysk and nansi.sys above.
nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi:\
    :al=\E[1L:dc=\E[1P:dl=\E[1M:ei=:ic=\E[1@:im=:\
    :is=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p:tc=ansi.sysk:

cygwin|ansi emulation for Cygwin:\
    :am:hs:in:ms:xo:\
    :Co#8:it#8:pa#64:\
    :&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\
    :DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:\
    :F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:\
    :F9=\E[33~:FA=\E[34~:IC=\E[%d@:K2=\E[G:LE=\E[%dD:\
    :RI=\E[%dC:S2=\E[11m:S3=\E[10m:UP=\E[%dA:ae=\E[10m:\
    :al=\E[L:as=\E11m:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[J:\
    :ch=\E[%i%dG:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\
    :cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:fs=^G:\
    :ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[[A:k2=\E[[B:k3=\E[[C:\
    :k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
    :k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
    :kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\
    :md=\E[1m:me=\E[0;10m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:\
    :op=\E[39;49m:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\
    :so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
    :ts=\E];:u6=\E[%i%d;%dR:u7=\E[6n:u8=\E[?6c:u9=\E[c:\
    :ue=\E[24m:up=\E[A:us=\E[4m:

lcygwin:\
    :xn@:op=\E[39;49m:Km=\E[M:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:tc=linux:

#### ANSI console types
#

# This entry is good for the 1.1.47 version of the Linux console driver.
#
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-


The "lcygwin" is just to prevent a conflict without having to remove the old entry.

Now if I switch back (rename "cygwin" in the above to "wcygwin" and "lcygwin" to "cygwin"), less works as usual for both standard input and file name arguments.


Randall Schulz


At 12:30 2003-04-03, you wrote:
>Randall R Schulz wrote:
>
>>Can I trouble you to explain why your termcap replaces something so different in the existing /etc/termcap file:
>>cygwin:\
>>    :xn@:op=\E[39;49m:Km=\E[M:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:tc=linux:
>>I understand that this entry incrementally modifies the "linux" entry. Your new one does not? You just decided to sever the connection? There's too much difference to handle this way? It was a bad idea for some reason?
>
>No, it's just that the existing termcap is very very different in 
>structure from the existing terminfo entry for cygwin.  ...
>
>--Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list