From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12145 invoked by alias); 30 Jul 2008 09:22:07 -0000 Received: (qmail 12134 invoked by uid 22791); 30 Jul 2008 09:22:07 -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 09:21:47 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 950146D4354; Wed, 30 Jul 2008 11:23:10 +0200 (CEST) Date: Wed, 30 Jul 2008 09:22:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: base-[files|password] for 1.7 Message-ID: <20080730092310.GI29031@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <20080728152750.GN29031@calimero.vinschen.de> <488F00EB.8080606@byu.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080730013932.GA14166@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/msg00183.txt.bz2 On Jul 29 21:39, Christopher Faylor wrote: > On Tue, Jul 29, 2008 at 01:59:54PM -0400, Christopher Faylor wrote: > >On Tue, Jul 29, 2008 at 05:18:32PM +0100, John Morrison wrote: > >>On Tue, July 29, 2008 3:57 pm, Corinna Vinschen wrote: > >>> On Jul 29 10:31, Christopher Faylor wrote: > >>>> On Tue, Jul 29, 2008 at 02:29:19PM +0200, Corinna Vinschen wrote: > >>>> >Chris, is there any good reason NOT to call send_winch_maybe on > >>>> >a key event? > >>>> > >>>> It only makes sense when there is a mouse event. > >>> > >>> I don't understand that. Mouse events typically don't happen. I can > >>> use the mouse as much as I want in a console window running vim, vim > >>> never gets the SIGWINCH. > >>> > >>>> It would make more > >>>> sense to move the handling of SIGWINCH into the signal handler so that > >>>> the above works transparently. I'll look into doing that. > >>> > >>> That would be a nice addition. > >> > >>So I don't need to add anything to /etc/profile? > > > >Adding the kill -WINCH still makes sense. It will at least get things > >working for xterm and rxvt. > > 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. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat