public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: vim quits and cygwin window contents not restored
@ 2003-03-24 22:36 lhall
  2003-03-24 23:43 ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: lhall @ 2003-03-24 22:36 UTC (permalink / raw)
  To: sehmann, cygwin

Works for me (tm).

Larry

Original Message:
-----------------
From: Stephen Ehmann SEhmann@nvidia.com
Date: Mon, 24 Mar 2003 13:57:02 -0800
To: cygwin@cygwin.com
Subject: vim quits and cygwin window contents not restored


Refer to:
 
http://sources.redhat.com/ml/cygwin/2001-03/msg01816.html
 
I still see that this is not working.  Terminal contents are not restored.
Can I set anything to resolve this?  Will the fix be in soon?
 
Thanks,
 
Stephen Ehmann

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


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* RE: vim quits and cygwin window contents not restored
  2003-03-24 22:36 vim quits and cygwin window contents not restored lhall
@ 2003-03-24 23:43 ` Randall R Schulz
  2003-03-25  0:36   ` Elfyn McBratney
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-03-24 23:43 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

Larry,

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.

For the hell of it, "cygcheck -s -v" output is attached.

Randall Schulz


At 14:06 2003-03-24, lhall@pop.ma.ultranet.com wrote:
>Works for me (tm).
>
>Larry
>
>Original Message:
>-----------------
>From: Stephen Ehmann SEhmann@nvidia.com
>Date: Mon, 24 Mar 2003 13:57:02 -0800
>To: cygwin@cygwin.com
>Subject: vim quits and cygwin window contents not restored
>
>
>Refer to:
>
>http://sources.redhat.com/ml/cygwin/2001-03/msg01816.html
>
>I still see that this is not working.  Terminal contents are not restored.
>Can I set anything to resolve this?  Will the fix be in soon?
>
>Thanks,
>
>Stephen Ehmann

[-- Attachment #2: cygcheck-Clemens-s-v-2003-03-24 --]
[-- Type: application/octet-stream, Size: 26910 bytes --]

[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-24 23:43 ` Randall R Schulz
@ 2003-03-25  0:36   ` Elfyn McBratney
  2003-03-25  3:31     ` Igor Pechtchanski
  0 siblings, 1 reply; 29+ messages in thread
From: Elfyn McBratney @ 2003-03-25  0:36 UTC (permalink / raw)
  To: cygwin, Randall R Schulz

> 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" :-) 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
elfyn@exposure.org.uk
www.exposure.org.uk



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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25  0:36   ` Elfyn McBratney
@ 2003-03-25  3:31     ` Igor Pechtchanski
  2003-03-25  3:39       ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: Igor Pechtchanski @ 2003-03-25  3:31 UTC (permalink / raw)
  To: Elfyn McBratney; +Cc: cygwin, Randall R Schulz

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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25  3:31     ` Igor Pechtchanski
@ 2003-03-25  3:39       ` Randall R Schulz
  2003-03-25  4:36         ` Larry Hall (RFK Partners, Inc.)
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-03-25  3:39 UTC (permalink / raw)
  To: cygwin

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@cs.nyu.edu
>ZZZzz /,`.-'`'    -.  ;-;;,_        igor@watson.ibm.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/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25  3:39       ` Randall R Schulz
@ 2003-03-25  4:36         ` Larry Hall (RFK Partners, Inc.)
  2003-03-25  5:13           ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: Larry Hall (RFK Partners, Inc.) @ 2003-03-25  4:36 UTC (permalink / raw)
  Cc: cygwin

Randall R Schulz wrote:
> 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.
> 


Yeah, the terminfo change is the "problem".   Updating to 5.3-1
allows me to reproduce the behavior.  Reverting to 5.2-3 restores
the original behavior.


-- 
Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25  4:36         ` Larry Hall (RFK Partners, Inc.)
@ 2003-03-25  5:13           ` Randall R Schulz
  2003-03-25  9:18             ` Charles Wilson
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-03-25  5:13 UTC (permalink / raw)
  To: cygwin

Larry,

At 19:38 2003-03-24, Larry Hall (RFK Partners, Inc.) wrote:
>Randall R Schulz wrote:
>>Hi,
>>
>>Some salient facts:
>>
>>...
>>
>>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.
>
>
>Yeah, the terminfo change is the "problem".   Updating to 5.3-1 allows 
>me to reproduce the behavior.  Reverting to 5.2-3 restores the 
>original behavior.

Does the presence of quote marks indicate you don't consider this a problem?

The wording of the "updating ..." and "reverting ..." sentences is 
ambiguous to me. Are you saying that you do see the failure to restore 
the original window contents when Vim is quit or suspended under 
terminfo-5.3-1 and see the proper restore behavior under 5.2-3?


>--
>Larry Hall


Randall Schulz 


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25  5:13           ` Randall R Schulz
@ 2003-03-25  9:18             ` Charles Wilson
  2003-04-02  8:31               ` Charles Wilson
  0 siblings, 1 reply; 29+ messages in thread
From: Charles Wilson @ 2003-03-25  9:18 UTC (permalink / raw)
  To: cygwin

Sorry, I haven't been following this thread.  See below.

Randall wrote:
>>> 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.

Larry wrote:
>> Yeah, the terminfo change is the "problem".   Updating to 5.3-1 allows 
>> me to reproduce the behavior.  Reverting to 5.2-3 restores the 
>> original behavior.

Randall wrote:
> Does the presence of quote marks indicate you don't consider this a 
> problem?
> 
> The wording of the "updating ..." and "reverting ..." sentences is 
> ambiguous to me. Are you saying that you do see the failure to restore 
> the original window contents when Vim is quit or suspended under 
> terminfo-5.3-1 and see the proper restore behavior under 5.2-3?

terminfo is a fork from ncurses -- but I try to keep it sync'ed. 
Recently, I built ncurses-5.3 for cygwin (it's available as a 'test' 
package right now) and while doing so, I resync'ed terminfo to the 
ncurses base.

I did this because the ncurses maintainer finally folded in most of 
Earnie Boyd's original changes for the "cygwin" terminal.  However, he 
did not include all of them.

In my foolishness, I figured that if the upstream maintainer had seen 
Earnie's patches, but opted to leave out a few codes, that he must have 
had a good reason to do so.  So I followed his lead.  (I never noticed a 
problem pre-release, because I do most of my work in an rxvt window; I 
did only minimal testing in a "DOSbox" TERM=cygwin shell.  Sorry. 
[doesn't everybody use rxvt?? <g>] )

I'll try to figure out which parts are missing, and reinstate them -- 
look for a new release (of terminfo-) sometime in the next week.

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25  9:18             ` Charles Wilson
@ 2003-04-02  8:31               ` Charles Wilson
  2003-04-02 14:21                 ` Igor Pechtchanski
  2003-04-02 16:07                 ` Randall R Schulz
  0 siblings, 2 replies; 29+ messages in thread
From: Charles Wilson @ 2003-04-02  8:31 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

Charles Wilson wrote:
> Sorry, I haven't been following this thread.  See below.

> I'll try to figure out which parts are missing, and reinstate them -- 
> look for a new release (of terminfo-) sometime in the next week.

Try the following.  First, save /usr/share/terminfo/c/cygwin somewhere 
handy.  Then, download and save the attached file cygwin.terminfo, and run
  'tic cygwin.terminfo'
which will compile it and install it into your terminfo database.

You can also hand edit /etc/termcap (back it up, first) and paste the 
attached cygwin.termcap file into it, deleting the current definition.

Anyway, give that a shot.  You'll note there are a lot of question marks 
in the comments in the cygwin.terminfo file.  If anyone's feeling really 
ambitious and likes digging thru terminfo documentation, the 
fhandler_console.cc source code in cygwin, and playing with 
/usr/bin/tack.exe...

--Chuck

[-- Attachment #2: cygwin.terminfo --]
[-- Type: text/plain, Size: 3781 bytes --]

# Use this for cygwin (tested with version 1.1.0).
# I've combined pcansi and linux.  Some values of course were different and
# I've indicated which of these were and which I used.
# Cheers, earnie_boyd@yahoo.com
# several changes based on running with tack and comparing with older entry -TD
# csw:
#   add    cbt   [backtab]
#   remove eo    [erase overstrike with blank]
#   change clear was \E[H\E[J  now \E[2J  (faster?)
#   remove cols
#   remove lines
#   remove ncv#3 [colors collide with highlights, bitmask] not applicable
#                to MSDOS box?
#   add    cub   [cursor back param] 
#   add    cuf   [cursor forward param]
#   add    cuu   [cursor up param]
#   add    cud   [cursor down param]
#   add    hs    [has status line]
#   add    fsl   [return from status line]
#   add    tsl   [go to status line]
#   add    smacs [Start alt charset] (not sure if this works)
#   add    rmacs [End alt charset]   (ditto)
#   add    smcup [enter_ca_mode] (save console; thanks Corinna)
#   add    rmcup [exit_ca_mode]  (restore console; thanks Corinna)
#   add    kb2   [center of keypad]
#   add    u8    [user string 8] \E[?6c
# Notes:
#   cnorm [make cursor normal] not implemented
#   flash [flash] not implemented
#   blink [blink] not implemented very usefully in cygwin? \E[5m
#   dim   [dim] not implemented very usefully in cygwin? \E[2m
#   cub1  [cursor back 1] typically \E[D, but ^H is faster?
#   kNXT  [shifted next key] not implemented
#   kPRV  [shifted prev key] not implemented
#   khome [home key] really is \E[1~ NOT \E[H
#   tbc   [clear tab stops] not implemented
#   xenl  [newline ignnored after 80 cols] messes up last line? Ehud Karni
#   smpch [Start PC charset] is \E[11m, same as smacs
#   rmpch [End PC charset] is \E[10m, same as rmacs
#   mir   [move in insert mode] fails in tack?
#   bce   [back color erase] causes problems with change background color?
#   cvvis [make cursor very visible] causes a stackdump when testing with
#         testcurs using the output option? \E[?25h\E[?8c
#   civis [make cursor invisible] causes everything to stackdump? \E[?25l\E[?1c
#   ech   [erase characters param] broken \E[%p1%dX
#   kcbt  [back-tab key] not implemented in cygwin?  \E[Z
cygwin|ansi emulation for Cygwin, 
	am,
	in,
	msgr,
	xon,
	colors#8,
	it#8,
	pairs#64,
	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
	bel=^G,
	bold=\E[1m,
	cbt=\E[Z,
	clear=\E[H\E[J,
	cr=^M,
	cub=\E[%p1%dD,
	cub1=^H,
	cud=\E[%p1%dB,
	cud1=\E[B,
	cuf=\E[%p1%dC,
	cuf1=\E[C,
	cup=\E[%i%p1%d;%p2%dH,
	cuu=\E[%p1%dA,
	cuu1=\E[A,
	dch=\E[%p1%dP,
	dch1=\E[P,
	dl=\E[%p1%dM,
	dl1=\E[M,
	ed=\E[J,
	el1=\E[1K,
	fsl=^G,
	home=\E[H,
	hpa=\E[%i%p1%dG,
	hs,
	ht=^I,
	ich=\E[%p1%d@,
	ich1=\E[@,
	il=\E[%p1%dL,
	il1=\E[L,
	ind=^J,
	invis=\E[8m,
	kb2=\E[G,
	kbs=^H,
	kcub1=\E[D,
	kcud1=\E[B,
	kcuf1=\E[C,
	kcuu1=\E[A,
	kdch1=\E[3~,
	kend=\E[4~,
	kf1=\E[[A,
	kf10=\E[21~,
	kf11=\E[23~,
	kf12=\E[24~,
	kf13=\E[25~,
	kf14=\E[26~,
	kf15=\E[28~,
	kf16=\E[29~,
	kf17=\E[31~,
	kf18=\E[32~,
	kf19=\E[33~,
	kf2=\E[[B,
	kf20=\E[34~,
	kf3=\E[[C,
	kf4=\E[[D,
	kf5=\E[[E,
	kf6=\E[17~,
	kf7=\E[18~,
	kf8=\E[19~,
	kf9=\E[20~,
	khome=\E[1~,
	kich1=\E[2~,
	knp=\E[6~,
	kpp=\E[5~,
	kspd=^Z,
	nel=^M^J,
	op=\E[39;49m,
	rc=\E8,
	rev=\E[7m,
	ri=\EM,
	rmacs=\E[10m,
	rmcup=\E[2J\E[?47l\E8,
	rmir=\E[4l,
	rmpch=\E[10m,
	rmso=\E[27m,
	rmul=\E[24m,
	rs1=\Ec\E]R,
	sc=\E7,
	setab=\E[4%p1%dm,
	setaf=\E[3%p1%dm,
	sgr=\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,
	sgr0=\E[0;10m,
	smacs=\E11m,
	smcup=\E7\E[?47h,
	smir=\E[4h,
	smpch=\E[11m,
	smso=\E[7m,
	smul=\E[4m,
	tsl=\E];,
	u6=\E[%i%d;%dR,
	u7=\E[6n,
	u8=\E[?6c,
	u9=\E[c,
	vpa=\E[%i%p1%dd,

[-- Attachment #3: cygwin.termcap --]
[-- Type: text/plain, Size: 991 bytes --]

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:


[-- Attachment #4: Type: text/plain, Size: 214 bytes --]

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-02  8:31               ` Charles Wilson
@ 2003-04-02 14:21                 ` Igor Pechtchanski
  2003-04-02 16:07                 ` Randall R Schulz
  1 sibling, 0 replies; 29+ messages in thread
From: Igor Pechtchanski @ 2003-04-02 14:21 UTC (permalink / raw)
  To: Charles Wilson; +Cc: cygwin

On Wed, 2 Apr 2003, Charles Wilson wrote:

> Charles Wilson wrote:
> > Sorry, I haven't been following this thread.  See below.
>
> > I'll try to figure out which parts are missing, and reinstate them --
> > look for a new release (of terminfo-) sometime in the next week.
>
> Try the following.  First, save /usr/share/terminfo/c/cygwin somewhere
> handy.  Then, download and save the attached file cygwin.terminfo, and run
>   'tic cygwin.terminfo'
> which will compile it and install it into your terminfo database.
>
> You can also hand edit /etc/termcap (back it up, first) and paste the
> attached cygwin.termcap file into it, deleting the current definition.
>
> Anyway, give that a shot.  You'll note there are a lot of question marks
> in the comments in the cygwin.terminfo file.  If anyone's feeling really
> ambitious and likes digging thru terminfo documentation, the
> fhandler_console.cc source code in cygwin, and playing with
> /usr/bin/tack.exe...

Chuck,

This works for me (Win2k SP2 console).  Vim restores the original screen
on exit, suspend, and command execution.  FYI, this also fixes the "vim
window title" problem, reported in
<http://cygwin.com/ml/cygwin/2003-03/msg02264.html>.  Thanks!
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-02  8:31               ` Charles Wilson
  2003-04-02 14:21                 ` Igor Pechtchanski
@ 2003-04-02 16:07                 ` Randall R Schulz
  2003-04-02 16:13                   ` Igor Pechtchanski
  2003-04-03  4:20                   ` vim quits and cygwin window contents not restored Charles Wilson
  1 sibling, 2 replies; 29+ messages in thread
From: Randall R Schulz @ 2003-04-02 16:07 UTC (permalink / raw)
  To: cygwin

Charles,

I must be missing something.


At 00:29 2003-04-02, you wrote:
>Charles Wilson wrote:
>>Sorry, I haven't been following this thread.  See below.
>
>>I'll try to figure out which parts are missing, and reinstate them -- 
>>look for a new release (of terminfo-) sometime in the next week.
>
>Try the following.  First, save /usr/share/terminfo/c/cygwin somewhere 
>handy.  Then, download and save the attached file cygwin.terminfo, and run
>  'tic cygwin.terminfo'
>which will compile it and install it into your terminfo database.

Since there were no attachments, I placed the text embedded in the 
message into a file named "cygwin.terminfo" and used "tic" as you 
prescribed. I get a diagnostic "Name collision between cygwin cygwin". 
I tried removing the existing terminfo entry, but the result is unchanged.


>You can also hand edit /etc/termcap (back it up, first) and paste the 
>attached cygwin.termcap file into it, deleting the current definition.

Then I saw this, so I figured that there are two text attachments that 
got merged into a blob of in-line text, so I took the last 20 lines 
beginning with "cygwin|ansi emulation for Cygwin:\" and gave them to 
tic, and it seems to work (tic likes it and the results reinstate 
screen context save and restore).

Could you clarify what's up here? Am I the only one who didn't see attachments?


>Anyway, give that a shot.  You'll note there are a lot of question 
>marks in the comments in the cygwin.terminfo file.  If anyone's 
>feeling really ambitious and likes digging thru terminfo 
>documentation, the fhandler_console.cc source code in cygwin, and 
>playing with /usr/bin/tack.exe...
>
>--Chuck


Randall Schulz 


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-02 16:07                 ` Randall R Schulz
@ 2003-04-02 16:13                   ` Igor Pechtchanski
  2003-04-02 16:45                     ` Make shows invalid contents Martin Gainty
  2003-04-03  4:20                   ` vim quits and cygwin window contents not restored Charles Wilson
  1 sibling, 1 reply; 29+ messages in thread
From: Igor Pechtchanski @ 2003-04-02 16:13 UTC (permalink / raw)
  To: Randall R Schulz; +Cc: cygwin

On Wed, 2 Apr 2003, Randall R Schulz wrote:

> Charles,
>
> I must be missing something.
>
> At 00:29 2003-04-02, you wrote:
> >Charles Wilson wrote:
> >>Sorry, I haven't been following this thread.  See below.
> >
> >>I'll try to figure out which parts are missing, and reinstate them --
> >>look for a new release (of terminfo-) sometime in the next week.
> >
> >Try the following.  First, save /usr/share/terminfo/c/cygwin somewhere
> >handy.  Then, download and save the attached file cygwin.terminfo, and run
> >  'tic cygwin.terminfo'
> >which will compile it and install it into your terminfo database.
>
> Since there were no attachments, I placed the text embedded in the
> message into a file named "cygwin.terminfo" and used "tic" as you
> prescribed. I get a diagnostic "Name collision between cygwin cygwin".
> I tried removing the existing terminfo entry, but the result is unchanged.
>
>
> >You can also hand edit /etc/termcap (back it up, first) and paste the
> >attached cygwin.termcap file into it, deleting the current definition.
>
> Then I saw this, so I figured that there are two text attachments that
> got merged into a blob of in-line text, so I took the last 20 lines
> beginning with "cygwin|ansi emulation for Cygwin:\" and gave them to
> tic, and it seems to work (tic likes it and the results reinstate
> screen context save and restore).
>
> Could you clarify what's up here? Am I the only one who didn't see attachments?
>
>
> >Anyway, give that a shot.  You'll note there are a lot of question
> >marks in the comments in the cygwin.terminfo file.  If anyone's
> >feeling really ambitious and likes digging thru terminfo
> >documentation, the fhandler_console.cc source code in cygwin, and
> >playing with /usr/bin/tack.exe...
> >
> >--Chuck
>
> Randall Schulz

Randall,

Since I knew a bit about termcap/terminfo formats, I figured there were
two files: tic input and a termcap entry.  The web archive inlined both
text attachments.  However, when I accessed the message from pine, it saw
both attachments separately.  I'd guess that your mailer also saw the
attachments as inline...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Make shows invalid contents
  2003-04-02 16:13                   ` Igor Pechtchanski
@ 2003-04-02 16:45                     ` Martin Gainty
  2003-04-02 16:51                       ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: Martin Gainty @ 2003-04-02 16:45 UTC (permalink / raw)
  To: cygwin, Randall R Schulz; +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 3866 bytes --]

Hello-
(makefile attached)
all attempts to run make against valid attached makefile result in
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
(garbage line) being thrown in

$ make
gcc -g -W -Wall -I/cygdrive/g/mysql/mysql-debug-4.0.12-pc-linux-i686/include
 -D_
THREAD_SAFE -D_REENTRANT -static
test_libmysqld.c  -L/cygdrive/g/mysql/mysql-de
bug-4.0.12-pc-linux-i686/lib -llibmysqlclient.a -lz -lm -lcrypt -lpthread -o
tes
t_libmysqld
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
cannot fi
nd -llibmysqlclient.a
collect2: ld returned 1 exit status
make: *** [test_libmysqld] Error 1

where is the specification for the garbage line:
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
??

(I already checked .profile and its not there)
Thank You,
Martin
----- Original Message -----
From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
To: "Randall R Schulz" <rrschulz@cris.com>
Cc: <cygwin@cygwin.com>
Sent: Wednesday, April 02, 2003 9:12 AM
Subject: Re: vim quits and cygwin window contents not restored


> On Wed, 2 Apr 2003, Randall R Schulz wrote:
>
> > Charles,
> >
> > I must be missing something.
> >
> > At 00:29 2003-04-02, you wrote:
> > >Charles Wilson wrote:
> > >>Sorry, I haven't been following this thread.  See below.
> > >
> > >>I'll try to figure out which parts are missing, and reinstate them --
> > >>look for a new release (of terminfo-) sometime in the next week.
> > >
> > >Try the following.  First, save /usr/share/terminfo/c/cygwin somewhere
> > >handy.  Then, download and save the attached file cygwin.terminfo, and
run
> > >  'tic cygwin.terminfo'
> > >which will compile it and install it into your terminfo database.
> >
> > Since there were no attachments, I placed the text embedded in the
> > message into a file named "cygwin.terminfo" and used "tic" as you
> > prescribed. I get a diagnostic "Name collision between cygwin cygwin".
> > I tried removing the existing terminfo entry, but the result is
unchanged.
> >
> >
> > >You can also hand edit /etc/termcap (back it up, first) and paste the
> > >attached cygwin.termcap file into it, deleting the current definition.
> >
> > Then I saw this, so I figured that there are two text attachments that
> > got merged into a blob of in-line text, so I took the last 20 lines
> > beginning with "cygwin|ansi emulation for Cygwin:\" and gave them to
> > tic, and it seems to work (tic likes it and the results reinstate
> > screen context save and restore).
> >
> > Could you clarify what's up here? Am I the only one who didn't see
attachments?
> >
> >
> > >Anyway, give that a shot.  You'll note there are a lot of question
> > >marks in the comments in the cygwin.terminfo file.  If anyone's
> > >feeling really ambitious and likes digging thru terminfo
> > >documentation, the fhandler_console.cc source code in cygwin, and
> > >playing with /usr/bin/tack.exe...
> > >
> > >--Chuck
> >
> > Randall Schulz
>
> Randall,
>
> Since I knew a bit about termcap/terminfo formats, I figured there were
> two files: tic input and a termcap entry.  The web archive inlined both
> text attachments.  However, when I accessed the message from pine, it saw
> both attachments separately.  I'd guess that your mailer also saw the
> attachments as inline...
> Igor
> --
> http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_ pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_ igor@watson.ibm.com
>      |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> Knowledge is an unending adventure at the edge of uncertainty.
>   -- Leto II
>
>
> --
> 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/
>
>

[-- Attachment #2: makefile --]
[-- Type: application/octet-stream, Size: 1082 bytes --]

# This assumes the MySQL software is installed in /usr/local/mysql
inc      := /cygdrive/g/mysql/mysql-debug-4.0.12-pc-linux-i686/include
lib      := /cygdrive/g/mysql/mysql-debug-4.0.12-pc-linux-i686/lib

# If you have not installed the MySQL software yet, try this instead
#inc      := /cygdrive/g/mysql/mysql-debug-4.0.12-pc-linux-i686/include:$(HOME)/mysql-4.0/include
#lib      := $(HOME)/mysql-4.0/libmysqld

CC       := gcc
CPPFLAGS := -I$(inc) -D_THREAD_SAFE -D_REENTRANT
CFLAGS   := -g -W -Wall
LDFLAGS  := -static
# You can change -lmysqld to -lmysqlclient to use the
# client/server library
#LDLIBS    = -L$(lib) -lmysqld -lz -lm -lcrypt
LDLIBS    = -L$(lib) -llibmysqlclient.a -lz -lm -lcrypt

ifneq (,$(shell grep FreeBSD /COPYRIGHT 2>/dev/null))
# FreeBSD
LDFLAGS += -pthread
else
# Assume Linux
LDLIBS += -lpthread
endif

# This works for simple one-file test programs
sources := $(wildcard *.c)
objects := $(patsubst %c,%o,$(sources))
targets := $(basename $(sources))

all: $(targets)

clean:
	rm -f $(targets) $(objects) *.core


[-- Attachment #3: Type: text/plain, Size: 214 bytes --]

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Make shows invalid contents
  2003-04-02 16:45                     ` Make shows invalid contents Martin Gainty
@ 2003-04-02 16:51                       ` Randall R Schulz
  2003-04-02 17:20                         ` Igor Pechtchanski
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-04-02 16:51 UTC (permalink / raw)
  To: cygwin; +Cc: cygwin

Martin,

What does Igor's reply to my message about the Chuck's fixed termcap / 
termino entries have to do with this?

Randall Schulz


At 08:44 2003-04-02, Martin Gainty wrote:
>Hello-
>(makefile attached)
>all attempts to run make against valid attached makefile result in
>...
>Thank You,
>Martin
>
>----- Original Message -----
>From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
>To: "Randall R Schulz" <rrschulz@cris.com>
>Cc: <cygwin@cygwin.com>
>Sent: Wednesday, April 02, 2003 9:12 AM
>Subject: Re: vim quits and cygwin window contents not restored
>
>
>...


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Make shows invalid contents
  2003-04-02 16:51                       ` Randall R Schulz
@ 2003-04-02 17:20                         ` Igor Pechtchanski
  2003-04-02 17:22                           ` Martin Gainty
  0 siblings, 1 reply; 29+ messages in thread
From: Igor Pechtchanski @ 2003-04-02 17:20 UTC (permalink / raw)
  To: Martin Gainty; +Cc: cygwin

My sentiment exactly.  Please start a new thread if you want help on this
issue.
	Igor

On Wed, 2 Apr 2003, Randall R Schulz wrote:

> Martin,
>
> What does Igor's reply to my message about the Chuck's fixed termcap /
> termino entries have to do with this?
>
> Randall Schulz
>
>
> At 08:44 2003-04-02, Martin Gainty wrote:
> >Hello-
> >(makefile attached)
> >all attempts to run make against valid attached makefile result in
> >...
> >Thank You,
> >Martin
> >
> >----- Original Message -----
> >From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
> >To: "Randall R Schulz" <rrschulz@cris.com>
> >Cc: <cygwin@cygwin.com>
> >Sent: Wednesday, April 02, 2003 9:12 AM
> >Subject: Re: vim quits and cygwin window contents not restored
> >
> >...

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Make shows invalid contents
  2003-04-02 17:20                         ` Igor Pechtchanski
@ 2003-04-02 17:22                           ` Martin Gainty
  2003-04-02 17:24                             ` Igor Pechtchanski
  0 siblings, 1 reply; 29+ messages in thread
From: Martin Gainty @ 2003-04-02 17:22 UTC (permalink / raw)
  To: cygwin

How do you do that?
Martin
----- Original Message ----- 
From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
To: "Martin Gainty" <mgainty@hotmail.com>
Cc: <cygwin@cygwin.com>
Sent: Wednesday, April 02, 2003 10:20 AM
Subject: Re: Make shows invalid contents


> My sentiment exactly.  Please start a new thread if you want help on this
> issue.
> Igor
> 
> On Wed, 2 Apr 2003, Randall R Schulz wrote:
> 
> > Martin,
> >
> > What does Igor's reply to my message about the Chuck's fixed termcap /
> > termino entries have to do with this?
> >
> > Randall Schulz
> >
> >
> > At 08:44 2003-04-02, Martin Gainty wrote:
> > >Hello-
> > >(makefile attached)
> > >all attempts to run make against valid attached makefile result in
> > >...
> > >Thank You,
> > >Martin
> > >
> > >----- Original Message -----
> > >From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
> > >To: "Randall R Schulz" <rrschulz@cris.com>
> > >Cc: <cygwin@cygwin.com>
> > >Sent: Wednesday, April 02, 2003 9:12 AM
> > >Subject: Re: vim quits and cygwin window contents not restored
> > >
> > >...
> 
> -- 
> http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_ pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_ igor@watson.ibm.com
>      |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> Knowledge is an unending adventure at the edge of uncertainty.
>   -- Leto II
> 
> 

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Make shows invalid contents
  2003-04-02 17:22                           ` Martin Gainty
@ 2003-04-02 17:24                             ` Igor Pechtchanski
  0 siblings, 0 replies; 29+ messages in thread
From: Igor Pechtchanski @ 2003-04-02 17:24 UTC (permalink / raw)
  To: Martin Gainty; +Cc: cygwin

You send a new message to <cygwin@cygwin.com> instead of replying to some
existing message.
	Igor
P.S. Should this be an FAQ? ];->  Nah...

On Wed, 2 Apr 2003, Martin Gainty wrote:

> How do you do that?
> Martin
> ----- Original Message -----
> From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
> To: "Martin Gainty" <mgainty@hotmail.com>
> Cc: <cygwin@cygwin.com>
> Sent: Wednesday, April 02, 2003 10:20 AM
> Subject: Re: Make shows invalid contents
>
> > My sentiment exactly.  Please start a new thread if you want help on this
> > issue.
> > Igor
> >
> > On Wed, 2 Apr 2003, Randall R Schulz wrote:
> >
> > > Martin,
> > >
> > > What does Igor's reply to my message about the Chuck's fixed termcap /
> > > termino entries have to do with this?
> > >
> > > Randall Schulz
> > >
> > >
> > > At 08:44 2003-04-02, Martin Gainty wrote:
> > > >Hello-
> > > >(makefile attached)
> > > >all attempts to run make against valid attached makefile result in
> > > >...
> > > >Thank You,
> > > >Martin
> > > >
> > > >----- Original Message -----
> > > >From: "Igor Pechtchanski" <pechtcha@cs.nyu.edu>
> > > >To: "Randall R Schulz" <rrschulz@cris.com>
> > > >Cc: <cygwin@cygwin.com>
> > > >Sent: Wednesday, April 02, 2003 9:12 AM
> > > >Subject: Re: vim quits and cygwin window contents not restored
> > > >
> > > >...

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-02 16:07                 ` Randall R Schulz
  2003-04-02 16:13                   ` Igor Pechtchanski
@ 2003-04-03  4:20                   ` Charles Wilson
  2003-04-03 14:54                     ` Randall R Schulz
  1 sibling, 1 reply; 29+ messages in thread
From: Charles Wilson @ 2003-04-03  4:20 UTC (permalink / raw)
  To: cygwin

Randall R Schulz wrote:

> Since there were no attachments, I placed the text embedded in the 
> message into a file named "cygwin.terminfo" and used "tic" as you 
> prescribed. I get a diagnostic "Name collision between cygwin cygwin". I 
> tried removing the existing terminfo entry, but the result is unchanged.

Igor is correct.  There were two attachments, but the web archive 
inlined them.  If you go to gmane, you'll see the attachments in their 
original form.

But that shouldn't matter too much.  The first attachment (or part) is 
the terminfo input -- the commentblock all the way down to the last 
"dense" block of 20 or so lines.  That "dense" block is the termcap 
entry.  You don't want to 'tic' that; it was generated from the longer 
file using 'tic -C' -- but any codes that termcap doesn't understand are 
dropped.  So converting it BACK to terminfo format is a lossy conversion.

Again, you want the first group.  But, if you're cut-n-pasting, you need 
to insure that each line begins with a tab, not 8 spaces (sometimes tic 
can be picky about that).

> 
>> You can also hand edit /etc/termcap (back it up, first) and paste the 
>> attached cygwin.termcap file into it, deleting the current definition.
> 
> 
> Then I saw this, so I figured that there are two text attachments that 
> got merged into a blob of in-line text, so I took the last 20 lines 
> beginning with "cygwin|ansi emulation for Cygwin:\" and gave them to 
> tic, and it seems to work (tic likes it and the results reinstate screen 
> context save and restore).

Yes, but your terminfo database entry is probably missing a few codes. 
Who knows if they are important...

> Could you clarify what's up here? Am I the only one who didn't see 
> attachments?

I dunno; they looked fine to me....

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-03  4:20                   ` vim quits and cygwin window contents not restored Charles Wilson
@ 2003-04-03 14:54                     ` Randall R Schulz
  2003-04-03 20:39                       ` Charles Wilson
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-04-03 14:54 UTC (permalink / raw)
  To: cygwin

Hi, Chuck,

Thanks for the clarification. I have no idea what was up with the MIME 
encoding or whatever it was that glitched.


At 20:16 2003-04-02, you wrote:
>Randall R Schulz wrote:
>
>>Since there were no attachments, I placed the text embedded in the 
>>message into a file named "cygwin.terminfo" and used "tic" as you 
>>prescribed. I get a diagnostic "Name collision between cygwin 
>>cygwin". I tried removing the existing terminfo entry, but the result 
>>is unchanged.
>
>Igor is correct.  There were two attachments, but the web archive 
>inlined them.  If you go to gmane, you'll see the attachments in their 
>original form.
>
>But that shouldn't matter too much.  The first attachment (or part) is 
>the terminfo input -- the commentblock all the way down to the last 
>"dense" block of 20 or so lines.  That "dense" block is the termcap 
>entry.  You don't want to 'tic' that; it was generated from the longer 
>file using 'tic -C' -- but any codes that termcap doesn't understand 
>are dropped.  So converting it BACK to terminfo format is a lossy conversion.

Thanks for the clarification. I've set things straight with the 
terminfo entry. Vim seemed to work perfectly well with the termcap 
entry for some reason. The tabs all made it through intact.


>Again, you want the first group.  But, if you're cut-n-pasting, you 
>need to insure that each line begins with a tab, not 8 spaces 
>(sometimes tic can be picky about that).
>
>>>You can also hand edit /etc/termcap (back it up, first) and paste 
>>>the attached cygwin.termcap file into it, deleting the current definition.

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?

Enquiring minds want to know. Dammit.

Just to avoid bridge burning, I added your new entry and renamed the 
old cygwin one.


>....
>
>--chuck


Thanks for fixing this up. It was a little annoying not to have the 
screen restored.

Randy 


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-03 14:54                     ` Randall R Schulz
@ 2003-04-03 20:39                       ` Charles Wilson
  2003-04-03 20:53                         ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: Charles Wilson @ 2003-04-03 20:39 UTC (permalink / raw)
  To: cygwin

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.  Now, if you work 
thru all of the dependencies, you might end up with the same thing; I dunno.

But, the terminfo entry is a straight "specify everything, no backrefs 
to other terminals".  So, if you tic -C it, you get a "specify 
everything, no backrefs" termcap entry.  As to WHY the existing termcap 
entry references linux but the terminfo one does not, your guess is as 
good as mine.  Historical, perhaps?

IMO, "specify everything" is the right way to go here.  cygwin is not 
linux.  cygwin is not xterm.  cygwin is cygwin, with all of its own very 
special quirks...

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-03 20:39                       ` Charles Wilson
@ 2003-04-03 20:53                         ` Randall R Schulz
  2003-04-06  7:23                           ` Charles Wilson
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-04-03 20:53 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-03 20:53                         ` Randall R Schulz
@ 2003-04-06  7:23                           ` Charles Wilson
  2003-04-06  8:12                             ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: Charles Wilson @ 2003-04-06  7:23 UTC (permalink / raw)
  To: cygwin

Randall R Schulz wrote:
> 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".

Well, I hate to be brusque, but I don't maintain termcap, just terminfo. 
   I provided a termcap translation as an offhand thing; I didn't really 
think about it.  Perhaps I should have thought about it, and then not 
done it <g>.

Anyway, perhaps some codes were dropped in the terminfo -> termcap 
autoconversion.  Or perhaps my new-n-improved terminfo entry is wrong: 
but the only way to find out is to recompile less to use 
terminfo/ncurses, and run your testcase.

I don't plan on doing that; sorry.

If the *terminfo* entry breaks *existing* apps that use *ncurses*, then 
I want to know, and I'll fix it (patches gratefully accepted, etc etc). 
  Otherwise, I don't care.  Termcap is not my baby.

--Chuck

> Here's an excerpt, with context, from my "/etc/termcap":
> 
[snip]
> 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.



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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-06  7:23                           ` Charles Wilson
@ 2003-04-06  8:12                             ` Randall R Schulz
  2003-04-06  8:57                               ` Charles Wilson
  0 siblings, 1 reply; 29+ messages in thread
From: Randall R Schulz @ 2003-04-06  8:12 UTC (permalink / raw)
  To: cygwin

Chuck,

At 15:52 2003-04-05, Charles Wilson wrote:
>Randall R Schulz wrote:
>>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".
>
>Well, I hate to be brusque, but I don't maintain termcap, just 
>terminfo.   I provided a termcap translation as an offhand thing; I 
>didn't really think about it.  Perhaps I should have thought about it, 
>and then not done it <g>.

I don't mind, but if you hate doing or being a thing, why do or be it anyway?


>Anyway, perhaps some codes were dropped in the terminfo -> termcap 
>autoconversion.  Or perhaps my new-n-improved terminfo entry is wrong: 
>but the only way to find out is to recompile less to use 
>terminfo/ncurses, and run your testcase.
>
>I don't plan on doing that; sorry.
>
>If the *terminfo* entry breaks *existing* apps that use *ncurses*, 
>then I want to know, and I'll fix it (patches gratefully accepted, etc 
>etc).  Otherwise, I don't care.  Termcap is not my baby.

It's no problem--I'll just stick with the previous "cygwin" termcap 
entry. But why send a termcap entry and then wash your hands of the 
consequences of it being used? You didn't include any disclaimers, so 
it seemed like the courteous thing to do to let you know about the problem.


>--Chuck

Randall Schulz  


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-04-06  8:12                             ` Randall R Schulz
@ 2003-04-06  8:57                               ` Charles Wilson
  0 siblings, 0 replies; 29+ messages in thread
From: Charles Wilson @ 2003-04-06  8:57 UTC (permalink / raw)
  To: cygwin

Randall R Schulz wrote:

> It's no problem--I'll just stick with the previous "cygwin" termcap 
> entry. But why send a termcap entry and then wash your hands of the 
> consequences of it being used? You didn't include any disclaimers, so it 
> seemed like the courteous thing to do to let you know about the problem.
> 

As I said in my immediately-previous email, this is why:
 >> I provided a termcap translation as an offhand thing; I
 >> didn't really think about it.  Perhaps I should have thought about it,
 >> and then not done it <g>.

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
@ 2003-03-25 16:12 lhall
  0 siblings, 0 replies; 29+ messages in thread
From: lhall @ 2003-03-25 16:12 UTC (permalink / raw)
  To: cygwin

Chuck, 

You're a scholar and a gentleman.

Thanks,

Larry

Original Message:
-----------------
From: Charles Wilson cwilson@ece.gatech.edu
Date: Tue, 25 Mar 2003 00:18:35 -0500
To: cygwin@cygwin.com
Subject: Re: vim quits and cygwin window contents not restored


Sorry, I haven't been following this thread.  See below.

Randall wrote:
>>> 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.

Larry wrote:
>> Yeah, the terminfo change is the "problem".   Updating to 5.3-1 allows 
>> me to reproduce the behavior.  Reverting to 5.2-3 restores the 
>> original behavior.

Randall wrote:
> Does the presence of quote marks indicate you don't consider this a 
> problem?
> 
> The wording of the "updating ..." and "reverting ..." sentences is 
> ambiguous to me. Are you saying that you do see the failure to restore 
> the original window contents when Vim is quit or suspended under 
> terminfo-5.3-1 and see the proper restore behavior under 5.2-3?

terminfo is a fork from ncurses -- but I try to keep it sync'ed. 
Recently, I built ncurses-5.3 for cygwin (it's available as a 'test' 
package right now) and while doing so, I resync'ed terminfo to the 
ncurses base.

I did this because the ncurses maintainer finally folded in most of 
Earnie Boyd's original changes for the "cygwin" terminal.  However, he 
did not include all of them.

In my foolishness, I figured that if the upstream maintainer had seen 
Earnie's patches, but opted to leave out a few codes, that he must have 
had a good reason to do so.  So I followed his lead.  (I never noticed a 
problem pre-release, because I do most of my work in an rxvt window; I 
did only minimal testing in a "DOSbox" TERM=cygwin shell.  Sorry. 
[doesn't everybody use rxvt?? <g>] )

I'll try to figure out which parts are missing, and reinstate them -- 
look for a new release (of terminfo-) sometime in the next week.

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


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
  2003-03-25 15:45 lhall
@ 2003-03-25 16:01 ` Randall R Schulz
  0 siblings, 0 replies; 29+ messages in thread
From: Randall R Schulz @ 2003-03-25 16:01 UTC (permalink / raw)
  To: cygwin

Larry,

At 07:18 2003-03-25, lhall@pop.ma.ultranet.com wrote:
>Hi Randall,
>
>Oh it's a problem alright.  I'm just not sure the exact source and
>whether this functionality is in conflict with something else that 5.3-1
>was trying to fix.  I looked at the email archives for discussions
>surrounding terminfo and couldn't find anything current, except for
>Chuck's announcement and credit given to Thomas Dickey for some Cygwin
>terminal changes.  Hm, guess I should've checked cygwin-apps too.  OK,
>that's on my list.
>
>Your interpretation of "updating" and "reverting" below is correct.  It
>works for me with terminfo 5.2-3 and doesn't work with 5.3-1.  I'm using
>vim 6.1.300-1 in a cmd.exe window running bash (2.05b-8).

OK. So I guess we can consider the symptom confirmed.

Igor's right. We need a name for the windows that are created for 
non-gui, character subsystem. Surely CMD.EXE is not involved in your 
scenario (which is the one I routinely use, too). I think "console" is OK.

When Jurgen mentioned "top" in his report on the output anomalies in 
"procps" I checked it for this symptom. It uses ncurses6 and also fails 
to restore the window contents.


Randall Schulz


>Larry
>
>Original Message:
>-----------------
>From: Randall R Schulz rrschulz@cris.com
>Date: Mon, 24 Mar 2003 20:14:55 -0800
>To: cygwin@cygwin.com
>Subject: Re: vim quits and cygwin window contents not restored
>
>
>Larry,
>
>At 19:38 2003-03-24, Larry Hall (RFK Partners, Inc.) wrote:
> >Randall R Schulz wrote:
> >>Hi,
> >>
> >>Some salient facts:
> >>
> >>...
> >>
> >>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.
> >
> >
> >Yeah, the terminfo change is the "problem".   Updating to 5.3-1 allows
> >me to reproduce the behavior.  Reverting to 5.2-3 restores the
> >original behavior.
>
>Does the presence of quote marks indicate you don't consider this a problem?
>
>The wording of the "updating ..." and "reverting ..." sentences is
>ambiguous to me. Are you saying that you do see the failure to restore
>the original window contents when Vim is quit or suspended under
>terminfo-5.3-1 and see the proper restore behavior under 5.2-3?
>
>
> >--
> >Larry Hall
>
>
>Randall Schulz


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: vim quits and cygwin window contents not restored
@ 2003-03-25 15:45 lhall
  2003-03-25 16:01 ` Randall R Schulz
  0 siblings, 1 reply; 29+ messages in thread
From: lhall @ 2003-03-25 15:45 UTC (permalink / raw)
  To: rrschulz, cygwin

Hi Randall,

Oh it's a problem alright.  I'm just not sure the exact source and
whether this functionality is in conflict with something else that 5.3-1
was trying to fix.  I looked at the email archives for discussions 
surrounding terminfo and couldn't find anything current, except for 
Chuck's announcement and credit given to Thomas Dickey for some Cygwin
terminal changes.  Hm, guess I should've checked cygwin-apps too.  OK,
that's on my list.

Your interpretation of "updating" and "reverting" below is correct.  It
works for me with terminfo 5.2-3 and doesn't work with 5.3-1.  I'm using 
vim 6.1.300-1 in a cmd.exe window running bash (2.05b-8).

Larry

Original Message:
-----------------
From: Randall R Schulz rrschulz@cris.com
Date: Mon, 24 Mar 2003 20:14:55 -0800
To: cygwin@cygwin.com
Subject: Re: vim quits and cygwin window contents not restored


Larry,

At 19:38 2003-03-24, Larry Hall (RFK Partners, Inc.) wrote:
>Randall R Schulz wrote:
>>Hi,
>>
>>Some salient facts:
>>
>>...
>>
>>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.
>
>
>Yeah, the terminfo change is the "problem".   Updating to 5.3-1 allows 
>me to reproduce the behavior.  Reverting to 5.2-3 restores the 
>original behavior.

Does the presence of quote marks indicate you don't consider this a problem?

The wording of the "updating ..." and "reverting ..." sentences is 
ambiguous to me. Are you saying that you do see the failure to restore 
the original window contents when Vim is quit or suspended under 
terminfo-5.3-1 and see the proper restore behavior under 5.2-3?


>--
>Larry Hall


Randall Schulz 


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


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* RE: vim quits and cygwin window contents not restored
@ 2003-03-24 22:46 Stephen Ehmann
  0 siblings, 0 replies; 29+ messages in thread
From: Stephen Ehmann @ 2003-03-24 22:46 UTC (permalink / raw)
  To: 'lhall@rfk.com'; +Cc: Stephen Ehmann, 'cygwin@cygwin.com'

It used to work fine for me to but I am setting up a new machine with a
recent install of cygwin.  Did you install recently?

-----Original Message-----
From: lhall@pop.ma.ultranet.com [mailto:lhall@pop.ma.ultranet.com] 
Sent: Monday, March 24, 2003 5:06 PM
To: Stephen Ehmann; cygwin@cygwin.com
Subject: RE: vim quits and cygwin window contents not restored


Works for me (tm).

Larry

Original Message:
-----------------
From: Stephen Ehmann SEhmann@nvidia.com
Date: Mon, 24 Mar 2003 13:57:02 -0800
To: cygwin@cygwin.com
Subject: vim quits and cygwin window contents not restored


Refer to:
 
http://sources.redhat.com/ml/cygwin/2001-03/msg01816.html
 
I still see that this is not working.  Terminal contents are not restored.
Can I set anything to resolve this?  Will the fix be in soon?
 
Thanks,
 
Stephen Ehmann

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


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


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

^ permalink raw reply	[flat|nested] 29+ messages in thread

* vim quits and cygwin window contents not restored
@ 2003-03-24 22:31 Stephen Ehmann
  0 siblings, 0 replies; 29+ messages in thread
From: Stephen Ehmann @ 2003-03-24 22:31 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Refer to:
 
http://sources.redhat.com/ml/cygwin/2001-03/msg01816.html
 
I still see that this is not working.  Terminal contents are not restored.
Can I set anything to resolve this?  Will the fix be in soon?
 
Thanks,
 
Stephen Ehmann

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

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2003-04-06  0:36 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 22:36 vim quits and cygwin window contents not restored lhall
2003-03-24 23:43 ` Randall R Schulz
2003-03-25  0:36   ` Elfyn McBratney
2003-03-25  3:31     ` Igor Pechtchanski
2003-03-25  3:39       ` Randall R Schulz
2003-03-25  4:36         ` Larry Hall (RFK Partners, Inc.)
2003-03-25  5:13           ` Randall R Schulz
2003-03-25  9:18             ` Charles Wilson
2003-04-02  8:31               ` Charles Wilson
2003-04-02 14:21                 ` Igor Pechtchanski
2003-04-02 16:07                 ` Randall R Schulz
2003-04-02 16:13                   ` Igor Pechtchanski
2003-04-02 16:45                     ` Make shows invalid contents Martin Gainty
2003-04-02 16:51                       ` Randall R Schulz
2003-04-02 17:20                         ` Igor Pechtchanski
2003-04-02 17:22                           ` Martin Gainty
2003-04-02 17:24                             ` Igor Pechtchanski
2003-04-03  4:20                   ` vim quits and cygwin window contents not restored Charles Wilson
2003-04-03 14:54                     ` Randall R Schulz
2003-04-03 20:39                       ` Charles Wilson
2003-04-03 20:53                         ` Randall R Schulz
2003-04-06  7:23                           ` Charles Wilson
2003-04-06  8:12                             ` Randall R Schulz
2003-04-06  8:57                               ` Charles Wilson
  -- strict thread matches above, loose matches on Subject: below --
2003-03-25 16:12 lhall
2003-03-25 15:45 lhall
2003-03-25 16:01 ` Randall R Schulz
2003-03-24 22:46 Stephen Ehmann
2003-03-24 22:31 Stephen Ehmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).