From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10456 invoked by alias); 29 Jul 2008 12:28:23 -0000 Received: (qmail 10445 invoked by uid 22791); 29 Jul 2008 12:28:22 -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; Tue, 29 Jul 2008 12:28:05 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id A56C76D4354; Tue, 29 Jul 2008 14:29:19 +0200 (CEST) Date: Tue, 29 Jul 2008 12:28:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: base-[files|password] for 1.7 Message-ID: <20080729122919.GX29031@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <20080717155516.GC5675@calimero.vinschen.de> <20080719141841.GN5675@calimero.vinschen.de> <20080722174237.GA25430@calimero.vinschen.de> <5f21cb61c3a7cb7ad2d02df11907792e.squirrel@mail.morrison.mine.nu> <20080728152750.GN29031@calimero.vinschen.de> <488F00EB.8080606@byu.net> <9f5f2bd17addf8364a82964f81f06f94.squirrel@mail.morrison.mine.nu> <488F0697.6000202@byu.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <488F0697.6000202@byu.net> 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/msg00166.txt.bz2 On Jul 29 06:01, Eric Blake wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > According to John Morrison on 7/29/2008 5:56 AM: > |> At any rate, you've given me an idea. Add this to /etc/profile, and > |> $LINES and $COLUMNS will be automatically populated for all users, > |> regardless of whether they use 'shopt -s checkwinsize': > |> > |> kill -s WINCH $$ > | > | Hi Eric, > | > | So, let me get this straight, you _don't_ want/need me to add the shopt > | but you would like me to add the kill instruction? > > Correct, the kill instruction is more efficient than the shopt - there is > no reason to poll for window changes after every command if the interrupt > for window changes works. I think it doesn't work for console windows. There's no automatic message when the console window size changes. There is some code in Cygwin's console code (fhandler_console::send_winch_maybe), but it only works when a console event is generated. And then it isn't called on key events. For testing I added the call to the key event so that the window size change is at least advertised when the next key is pressed. Chris, is there any good reason NOT to call send_winch_maybe on a key event? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat