From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5516 invoked by alias); 30 Jul 2008 17:39:26 -0000 Received: (qmail 5500 invoked by uid 22791); 30 Jul 2008 17:39:25 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 30 Jul 2008 17:39:07 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id D736D6D4354; Wed, 30 Jul 2008 19:39:06 +0200 (CEST) Date: Wed, 30 Jul 2008 17:39:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: base-[files|password] for 1.7 Message-ID: <20080730173906.GD7319@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <9f5f2bd17addf8364a82964f81f06f94.squirrel@mail.morrison.mine.nu> <488F0697.6000202@byu.net> <20080729122919.GX29031@calimero.vinschen.de> <20080729143123.GE7379@ednor.casa.cgf.cx> <20080729145754.GE29031@calimero.vinschen.de> <0f5cf79df02984f1e40c0b600041fbbd.squirrel@mail.morrison.mine.nu> <20080729175954.GA11799@ednor.casa.cgf.cx> <20080730013932.GA14166@ednor.casa.cgf.cx> <20080730092310.GI29031@calimero.vinschen.de> <20080730152018.GA17345@ednor.casa.cgf.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080730152018.GA17345@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2008-07/txt/msg00188.txt.bz2 On Jul 30 11:20, Christopher Faylor wrote: > On Wed, Jul 30, 2008 at 11:23:10AM +0200, Corinna Vinschen wrote: > >On Jul 29 21:39, Christopher Faylor wrote: > >> Ok. I'm confused. If I perform a "kill -SIGWINCH " on a bash > >> which is opened in a console window, the right number of lines shows up. > >> They also show up when you change the size of the window. > >> > >> So it seems like this is working correctly without any Cygwin > >> modifications. > > > >Doesn't work for me. kill -WINCH $$ creates the LINES and COLUMNS > >values, but any later windows resize doesn't change the values. And as > >mentioned before it also doesn't work in vim. Adding send_winch_maybe() > >to the KEY_EVENT at least changes it at the next keypress. And there's > >no such thing as a mouse event, whatever I do with the mouse. > > L:\Documents and Settings\cgf>bash > bash-3.2$ echo $LINES > > bash-3.2$ echo $LINES # make window bigger > 42 > bash-3.2$ echo $LINES # make window even bigger > 56 > > (also checked with a 4NT console) In a standard console window on Windows 2008 (but the OS doesn't matter): $ echo $LINES $ echo $LINES # make windows smaller $ echo $LINES # make windows bigger $ kill -WINCH $$; echo $LINES 54 $ echo $LINES # make windows smaller 54 > Putting a "kill -WINCH $$" in my /home/cgf/.profile file causes LINES to > be set initially when I use "bash -login". > > In my version of vim the screen size *does* change after every keypress > just like it always did. I checked this with vim when I implemented it. It never worked right for me in a console window. > If this isn't working for you then fixing the symptom by checking on > every keystroke, slowing down the already slow input processing even > further, is not the correct first solution for handling the problem. I didn't claim that. I just mentioned that to point out the difference. > SetConsoleMode (get_io_handle (), ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT); I know. I have no idea what could be different between your and my setup, though. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat