From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by sourceware.org (Postfix) with ESMTPS id 0DFF13852755 for ; Sun, 19 Jun 2022 04:17:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0DFF13852755 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 25J4GjXU013597; Sun, 19 Jun 2022 13:16:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 25J4GjXU013597 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1655612205; bh=vl3qOuzwELtx+r3JPwZkGvqYmCni/+SKC9BcgA+0yyM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LcXc+R1ti/Kwtzgc0yVAdji29spZ6slwj0BjCKEmtAd8RXxv26z8t0Nqqupg/2/7z fnn4uboHVb3dza1R3odm1iqvK0D77qxosYoFMaWk0SbrH3MBS+uPwkZtbHjXjQ5kh/ 2tvf/gJEtqVoAaNGdXbzu8GfXpYW0kbnr5GJnrf6INWqKgQgCknjQbyrhtoc8OU3ZV Ew6w4fukswQh3Oqgi/Npfx5nuOyeN3J+ozi1ZXjYLbssu8iZtJ0WiTXSb9i3Q7vsXl qm2+qBgRgdLXSJMkJ7eP8DwWIBfstFRR4NXW1gbTbDH8YA0MdI58L6lEZtju4Ww2Qm MjXge2uKFVQdw== X-Nifty-SrcIP: [119.150.44.95] Date: Sun, 19 Jun 2022 13:16:47 +0900 From: Takashi Yano To: cygwin@cygwin.com Cc: Tomi Belan Subject: Re: Long window title escape sequence breaks console output Message-Id: <20220619131647.921dba5d3c2aea9b06d2a017@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, NICE_REPLY_A, 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: Sun, 19 Jun 2022 04:17:12 -0000 On Sat, 18 Jun 2022 17:56:05 +0200 Tomi Belan wrote: > 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. Fixed. https://cygwin.com/pipermail/cygwin-patches/2022q2/011939.html Thanks. -- Takashi Yano