From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 71321b11 for ; Tue, 24 Dec 2019 22:21:35 +0000 (UTC) Received: (qmail 16728 invoked by alias); 24 Dec 2019 22:21:26 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24576 Received: (qmail 25849 invoked by uid 1010); 24 Dec 2019 22:21:26 -0000 X-Qmail-Scanner-Diagnostics: from mx1.cock.li by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25670. spamassassin: 3.4.2. Clear:RC:0(185.10.68.5):SA:0(-1.9/5.0):. Processed in 4.510969 secs); 24 Dec 2019 22:21:26 -0000 X-Envelope-From: zsugabubus@national.shitposting.agency X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at national.shitposting.agency designates 185.10.68.5 as permitted sender) Date: Tue, 24 Dec 2019 23:20:39 +0100 From: zsugabubus To: zsh-users@zsh.org Subject: Receiving SIGWINCH while waiting for user input Message-ID: <20191224222039.zkf5jhhso2dk7kwz@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I'm writing an interactive script using `zcurses`, but I got stuck receiving SIGWINCH while waiting for user input. I tried `read`, `zcurses input`, `sysread` and `zselect` (waiting for stdin then read) but all blocks SIGWINCH. I also tried `vared`, but couldn't read just one character at a time. Is there a way I can achieve it? Handling resize only after a command has been entered doesn't seem a nice solution. Thanks, zsugabubus