From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16502 invoked by alias); 30 Sep 2015 10:49:26 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36713 Received: (qmail 29078 invoked from network); 30 Sep 2015 10:49:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=L1bY36WEJBOdGb4 MwX5LVe9gW3M=; b=CZsur75qJViGtWJlMzYJWsiSeoTHzhcqKTVWigThct3Ovaa FOb0xNfQFDkUmNf8ZSABl3oi+b1TMu3gWT/z6k47yf3EPT3m7aUuv9rWkeJwZX44 CaspGuJbaYowJgFjFvs9rky0gQ+ji2sOQNPgZDmRBc9x4dtC4Xl0RD9NNtmg= X-Sasl-enc: R2aSxQhe06lRE4yBiTOqP8+7fGa8bUVk9HAHvc3/Rn0z 1443610162 Subject: Re: zcurses input timeout and window resizing To: Zsh hackers list References: <560BAE3B.5050409@apjanke.net> From: Andrew Janke Message-ID: <560BBE2D.6000701@apjanke.net> Date: Wed, 30 Sep 2015 06:49:17 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <560BAE3B.5050409@apjanke.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 9/30/15 5:41 AM, Andrew Janke wrote: > I'm running in to an issue with the interaction between "zcurses > timeout"/"zcurses input" and terminal window resizing. On OS X, it > seems that if you resize a window while waiting on a "zcurses input", > the timeout will effectively be ignored, and "zcurses input" will > block until actual input is received. > Any known workarounds to this? Maybe it's dependent on the version of > curses? My OS X zsh is linked against libncurses.5.4.dylib; the Debian > one against libncursesw.so.5. > > The "tetriscurses" example program seems to stay live through window > sizes on the same OS X system, and I can't figure out what it's doing > differently to keep the timeout working through window resizes. Think I partially answered my own question here: I rebuilt a zsh 5.1.1 against ncurses 6.0 on OS X, and on that one, the timeouts work through window resizes. Still curious how tetriscurses seems to work even with ncurses 5.4. Andrew