X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03D323890412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1613212821; bh=6C/TnysK2+NlAhulr5G1EzGl8rA+KAAgMPw0RIIN07s=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=h0iwdttVK5CqIRnqRNIFiKJQlLq88O+Q7pSq0kTISLFNykgHxOidGvRuWz8XDvKB1 C9r0U9mJQtyMp3IvcveunwvOfe4kK6ozwyGZGfY7yGTK9IlU7HfqzrPBaiKW72jpzb sKHUq6gKO112gZurrkadG0h8kbbV8iV1sqFT8KRQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 04277388A416 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=psuF24yAcTfU6cnk3WNugUv//VxEiktTSUYZwbFSr0I=; b=nPwTn9dTBopgg4G45Bdo8Dwbkw92UjKmjzQfFFztZIx3X+TKfU1T0N3b1ZsfkWOSQQ Wt5wvd1daVm7H67ih07mFrcnSNBHTtB2hueGk/lzknPK+XIrqPVolhYbjrPSlSBUbg9y 4QO/hjrnEBo1uXvmTAfRrQMWlNFDfC/phsZGjsk/j9HIqdgmFeALSeIn5ywXAbvask8k QbCG71VfCB7bBx3/JrWnju0ptftrM6RFszLc6XhcXwIQvUdpRqVYOHy1gVB9Zma/lhlR snCzNlHRfsXFQWr6HT1MJYAVGeU3/j7l5aT23DYsDLUP4uMrs2PQ+QcYIb3KyqWW3vW6 s4Mw== X-Gm-Message-State: AOAM531RHVZDPnSlZaBi8h+5wYtZQ66Up11S5uG8sNRl+wSpN8tTWxKi IMVkW5dOTba6x0MpJw6Ej5Dmx/UA3ADS3qcSNP36q6aN6cVw5w== X-Google-Smtp-Source: ABdhPJwqsrv62tYWLJpKaa9WzTKg7gKH6SvtYdnT12jhij29RMdiagCH9CTeGXu54tlngiHfT1FLm8x4uTGJ092i+Co= X-Received: by 2002:a2e:530b:: with SMTP id h11mr1256369ljb.93.1613212816668; Sat, 13 Feb 2021 02:40:16 -0800 (PST) MIME-Version: 1.0 Date: Sat, 13 Feb 2021 20:39:39 +1000 Message-ID: Subject: Cygwin doesn't handle SIGWINCH properly in Windows Terminal To: cygwin AT cygwin DOT com X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Alvin Seville via Cygwin Reply-To: Alvin Seville Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Windows build number: Win32NT 10.0.19042.0 Microsoft Windows NT 10.0.19042.0 Windows Terminal version (if applicable): 1.5.10271.0 Script to reproduce this issue: #!/usr/bin/env bashfunction outputText() { local text=$1 local -i textLength=${#text} local -i line="$(tput lines) / 2" local -i col="$(tput cols) / 2 - $textLength / 2" clear echo -en "\e[$line;${col}H$text" } trap "outputText 'Hello world!'" SIGWINCH outputText 'Hello world!'while truedo :done As you see Windows Terminal doesn't handle SIGWINCH properly. However everything works fine when I execute my script directly from Cygwin Terminal without Windows Terminal which users told me that it seems to be a Cygwin bug. -- alvinseville7cf AT Alvins-MacBook-Pro ~ $* echo *"Best regards, Alvin Seville."* && exit* -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple