From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id 04277388A416 for ; Sat, 13 Feb 2021 10:40:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 04277388A416 Received: by mail-lj1-x22b.google.com with SMTP id q14so2016503ljp.4 for ; Sat, 13 Feb 2021 02:40:17 -0800 (PST) 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 From: Alvin Seville Date: Sat, 13 Feb 2021 20:39:39 +1000 Message-ID: Subject: Cygwin doesn't handle SIGWINCH properly in Windows Terminal To: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2021 10:40:19 -0000 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@Alvins-MacBook-Pro ~ $* echo *"Best regards, Alvin Seville."* && exit*