This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vim quits and cygwin window contents not restored


Hi,

Some salient facts:

Vim uses ncurses6:

% cygcheck vim
Found: D:\cygwin\bin\vim.exe
D:/cygwin/bin/vim.exe
  D:\cygwin\bin\cygwin1.dll
    D:\WINNT\System32\KERNEL32.dll
      D:\WINNT\System32\ntdll.dll
  D:\cygwin\bin\cygintl-2.dll
    D:\cygwin\bin\cygiconv-2.dll
  D:\cygwin\bin\cygncurses6.dll


Less doesn't use ncurses at all (!):

% cygcheck less
Found: D:\cygwin\bin\less.exe
D:/cygwin/bin/less.exe
  D:\WINNT\System32\KERNEL32.dll
    D:\WINNT\System32\ntdll.dll
  D:\cygwin\bin\cygwin1.dll
  D:\cygwin\bin\cygpcre.dll


Ncurses6 has not been updated recently:

% pwd
/e/Cygnus/Install/http%3a%2f%2fmirror.mcs.anl.gov%2fcygwin/release

% ll -R ncurses
ncurses:
total 4402
drwxrwxrwx+   2 Administ None            0 Mar 12 11:15 libncurses-devel/
drwxrwxrwx+   2 Administ None            0 Aug 18  2002 libncurses5/
drwxrwxrwx+   2 Administ None         4096 Aug 23  2002 libncurses6/
drwxrwxrwx+   2 Administ None            0 Mar 12 11:21 libncurses7/
-rwxrwxrwx    1 Administ None      1770933 Aug 16  2002 ncurses-5.2-8-src.tar.bz2*
-rwxrwxrwx    1 Administ None       647793 Jan 10  2002 ncurses-5.2-8.tar.bz2*
-rwxrwxrwx    1 Administ None      2087131 Mar 12 11:21 ncurses-5.3-1-src.tar.bz2*
drwxrwxrwx+   2 Administ None            0 Mar 12 11:22 ncurses-demo/

ncurses/libncurses-devel:
total 234
-rwxrwxrwx    1 Administ None       239337 Mar 12 11:15 libncurses-devel-5.3-1.tar.bz2

ncurses/libncurses5:
total 179
-rwxrwxrwx    1 Administ None          259 Aug 16  2002 libncurses5-5.2-1-src.tar.bz2
-rwxrwxrwx    1 Administ None       181942 Oct  3  2001 libncurses5-5.2-1.tar.bz2

ncurses/libncurses6:
total 188
-rwxrwxrwx    1 Administ None          523 Aug 16  2002 libncurses6-5.2-8-src.tar.bz2
-rwxrwxrwx    1 Administ None       190693 Jan 10  2002 libncurses6-5.2-8.tar.bz2

ncurses/libncurses7:
total 164
-rwxrwxrwx    1 Administ None       167635 Mar 12 11:21 libncurses7-5.3-1.tar.bz2

ncurses/ncurses-demo:
total 137
-rwxrwxrwx    1 Administ None       139630 Mar 12 11:22 ncurses-demo-5.3-1.tar.bz2


Terminfo, on the other hand, was recently updated:

% ll -R terminfo
terminfo:
total 447
-rwxrwxrwx    1 Administ None       273706 Mar 11 21:26 terminfo-5.3-1-src.tar.bz2*
-rwxrwxrwx    1 Administ None       182382 Mar 11 21:25 terminfo-5.3-1.tar.bz2*

% ll $(find /usr/share/terminfo -iname '*cygwin*')
-rwxrwxrwx    1 Administ None         1448 Mar  9 15:15 /usr/share/terminfo/c/cygwin
-rwxrwxrwx    1 Administ None         1376 Mar  9 15:15 /usr/share/terminfo/c/cygwinB19
-rwxrwxrwx    1 Administ None         1512 Mar  9 15:15 /usr/share/terminfo/c/cygwinDBG
-rwxrwxrwx    1 Administ None         1664 Mar  9 15:15 /usr/share/terminfo/r/rxvt-cygwin
-rwxrwxrwx    1 Administ None         1682 Mar  9 15:15 /usr/share/terminfo/r/rxvt-cygwin-native


So, my bet is on the terminfo for cygwin as the locus of the problem, 
whatever it is. Other reasonable hypotheses are that there's problem in 
ncurses or in how Vim uses it.


Randall Schulz


At 15:43 2003-03-24, Igor Pechtchanski wrote:
>On Mon, 24 Mar 2003, Elfyn McBratney wrote:
>
>> > It used to work for me, but a recent update has caused it to cease
>> > working for me, too. Unfortunately, I'm not sure which--wasn't there an
>> > ncurses update recently? Perhaps when it's convenient, I'll try to back
>> > up to see if that makes screen restore start working again.
>> >
>> > One other thing I've noticed is that "less" restores the screen but Vim
>> > doesn't.
>>
>> FWICS (acronym alert: "From What I Can See" :-)
>
>Yes, but you don't get the credit.  It's been used before... :-p
>
>> there is no difference. I've been switching libncurses and ncurses and I
>> don't think anything has changed. Perhaps a change in the termcap?
>>
>> Regards,
>> Elfyn McBratney
>
>Well, I've been reading some vim help.  A few interesting things surfaced.
>For details, "help restorescreen", "help term", "help terminfo", and "help
>xterm-screens" in vim.  FWIW, it works for me in an xterm, but doesn't in
>the "bash window" (we *really* ought to come up with a better name for
>that).  Looks like vim doesn't recognize TERM=cygwin and doesn't set t_ti
>and t_te appropriately.  These two variables control the "alternate
>screen" feature.  As they aren't even defined for TERM=cygwin, I don't
>know how it ever worked (unless termcap/terminfo were changed recently).
>    Igor
>-- 
>                http://cs.nyu.edu/~pechtcha/
>      |\      _,,,---,,_        pechtcha at cs dot nyu dot edu
>ZZZzz /,`.-'`'    -.  ;-;;,_        igor at watson dot ibm dot com
>     |,4-  ) )-,_. ,\ (  `'-'       Igor Pechtchanski
>    '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]