delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/06/18/11:57:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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
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: <CACUV5ofVqAs37Fv1uzAkCNTSQtm0-5BxQ01UyCWWUss-MBTUpg AT mail DOT gmail DOT com>
In-Reply-To: <CACUV5ofVqAs37Fv1uzAkCNTSQtm0-5BxQ01UyCWWUss-MBTUpg@mail.gmail.com>
From: Tomi Belan <tomi DOT belan AT gmail DOT com>
Date: Sat, 18 Jun 2022 17:56:05 +0200
Message-ID: <CACUV5ocy-cWwaj72HFcPiQQkto=yz1o9-FLvTaYsM28cRzmJsw@mail.gmail.com>
Subject: Re: Long window title escape sequence breaks console output
To: cygwin AT cygwin DOT com
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Fri, Jun 17, 2022 at 3:38 PM Tomi Belan <tomi DOT belan AT gmail DOT com> 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.

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019