From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by sourceware.org (Postfix) with ESMTPS id 7BB45385803E for ; Sat, 18 Jun 2022 15:56:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7BB45385803E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-f2a4c51c45so9000349fac.9 for ; Sat, 18 Jun 2022 08:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ABgeyEA/HMKUa5rx3ldlBpNR0Xx3JFBPR/oBYuJ4iE4=; b=PeuFLYCUvZp+c7zRHwCBKWbDTq49/wOaSeSvONsYruw16KQFYftq4jrc1Ta/ks3Njb XrmrNtkLEBGn8i8qr9Iz6+wLmCTRTIbyF/kQ8LxUDzchhI/NYORUAvzZRZ3wrtuCz2FD RX4K6cpt8ST3whfG2Mp7335Sb+it7w1TiG6wr9RweLXDt2gqJBx/kLu6voF/isiBuWN6 18u3wSEsXWI1yc+NN5Qv0gsSC4kaUTEsnWJd4azBsYH26Rc0+6UUHEHrcBD3Eg2It32s Jui72AebaMlx+CkPeIjGo1QBhPjfzNr3FMBQgiv0bNvdTvgKjKYb0mgrZ/6s2Ka8hX0l UaMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ABgeyEA/HMKUa5rx3ldlBpNR0Xx3JFBPR/oBYuJ4iE4=; b=WUkq1avU3Ji52p5GV8Qighf8xn/kxFBQ4SFzSnYefg5G+vHev15N2DPTLf24uDx56j YOThH96Xl3VyNoOa0OyytQ1m3pP98RemwXCIC8eZ9OdDthhq9vhKVihiRPCB3HrG6Gpb 7TdRr9ZWsvj5hzzz7x58ovrtnc1JNQn8IWwwOzrB8O2Gc8jlYZ4nhX/9SqMZMc7n463j J75wTEmjU2k8DJsubf//c62/nCB4vDOQ+ORR2GbNBIHskRq1e3Xjm9YYJt2g4se9zooU sLn2eE+Pq0d7WzxTnnLpOOsMC2M07VdsgcXn/42GnzRDZ/Wp/K3CA6m/HD7hv8Rz47W4 gJHQ== X-Gm-Message-State: AJIora8MRuPtkJVrraeZ5PUm8Xqd1QdQmhfPnWrmbTd1qnf3BGRLoPtR HovEGW1K9kAaqFy1LM789Sdpl3/coLh1nDdrXH4lGiCOK78= X-Google-Smtp-Source: AGRyM1sDhn/2yMC79vXWtfNGO9Rd18lha6ufDC4s8nFjcOGCHdIMLZhYRBJyXOSJq32GW+hsEp3SaKce7B6WFZu29P4= X-Received: by 2002:a05:6870:349:b0:f1:928d:c803 with SMTP id n9-20020a056870034900b000f1928dc803mr7831907oaf.19.1655567791263; Sat, 18 Jun 2022 08:56:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tomi Belan Date: Sat, 18 Jun 2022 17:56:05 +0200 Message-ID: Subject: Re: Long window title escape sequence breaks console output To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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, 18 Jun 2022 15:56:34 -0000 On Fri, Jun 17, 2022 at 3:38 PM Tomi Belan wrote: > I hope you enjoyed the bug report. Let me know if you have any questions. > > Tomi Takashi Yano wrote: > Thanks for the report. What situation do you assume where > such a long title needs to be set? I experienced the bug because my shell is configured to print the currently running command in the window title. When I ran a command longer than 256 characters, it looked like the command didn't run. It actually did run, but ssh.exe ate its output. Example: https://tldp.org/HOWTO/Xterm-Title-5.html (but I'm not using zsh) I know this isn't a common configuration, but I still hope you'll fix it. Since cygwin just uses mailing lists instead of a real persistent bug tracker, I'm worried about the bug being forgotten forever if it's not fixed soon. Truncating the title to 256 WITH the final '\a' is a suboptimal but acceptable fix. A better idea might be: in non-legacy terminals, don't even switch from "normal" to "gettitle", just print everything as it arrives. I'm not subscribed to the mailing list so I'm manually sending this as a reply to my first email. Sorry for the mess. Please CC me on future replies.