| delorie.com/archives/browse.cgi | search |
| 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.3.2 sourceware.org 738AD385BF92 |
| Authentication-Results: | sourceware.org; |
| dmarc=none (p=none dis=none) header.from=orange.fr | |
| Authentication-Results: | sourceware.org; |
| spf=none smtp.mailfrom=luc DOT henninger AT orange DOT fr | |
| X-ME-Helo: | [192.168.1.14] |
| X-ME-Auth: | bHVjLmhlbm5pbmdlckB3YW5hZG9vLmZy |
| X-ME-Date: | Wed, 01 Apr 2020 22:21:42 +0200 |
| X-ME-IP: | 82.123.47.89 |
| Subject: | Re: Re: Issue with mintty: title not updated when background process |
| exists | |
| To: | cygwin AT cygwin DOT com |
| References: | <c0d8bcc6-5620-dcf8-d462-02083d85c41d AT orange DOT fr> |
| <7ea4c66b-5463-dccb-9a19-acd0ffb546c0 AT towo DOT net> | |
| <0f8c0f14-f978-c487-5702-0fc8a6727ce5 AT towo DOT net> | |
| From: | Luc Henninger <luc DOT henninger AT orange DOT fr> |
| Message-ID: | <5df553fb-45cd-f228-c533-69a5db6e81be@orange.fr> |
| Date: | Wed, 1 Apr 2020 22:21:40 +0200 |
| User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 |
| Thunderbird/68.6.0 | |
| MIME-Version: | 1.0 |
| In-Reply-To: | <0f8c0f14-f978-c487-5702-0fc8a6727ce5@towo.net> |
| X-Antivirus: | Avast (VPS 200401-0, 01/04/2020), Outbound message |
| X-Antivirus-Status: | Clean |
| X-Spam-Status: | No, score=-1.0 required=5.0 tests=BAYES_40, FREEMAIL_FROM, |
| KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, | |
| RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, | |
| TXREP autolearn=no autolearn_force=no version=3.4.2 | |
| X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) 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-Unsubscribe: | <http://cygwin.com/mailman/options/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
| List-Archive: | <http://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: | <http://cygwin.com/mailman/listinfo/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
| Errors-To: | cygwin-bounces AT cygwin DOT com |
| Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
This is a multi-part message in MIME format.
--------------14CA5782812F68E241F906D4
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Le 01/04/2020 =C3=A0 14:24, Thomas Wolff a =C3=A9crit=C2=A0:
> Am 01.04.2020 um 14:20 schrieb Thomas Wolff:
>> Am 01.04.2020 um 13:07 schrieb Luc Henninger:
>>> Hello,
>>>
>>> I have defined the PS1 variable as follow
>>> PS1=3D'\[\e]0;\w\a\]\[\e[32m\]\u@\h \[\e[35m\]\w\[\e[0m\]\n\$ '
>>> so that the cur dir is set as title of the window.
>>>
>>> This generally work for both mintty or cmd.
>>> But after the sequence
>>> =C2=A0 Luc AT Mulan ~
>>> =C2=A0 $ emacs &
>>> =C2=A0 [1] 371
>>> =C2=A0 Luc AT Mulan ~
>>> =C2=A0 $ cd bin
>>> =C2=A0 Luc AT Mulan ~/bin
>>> =C2=A0 $
>>> the title of the mintty widow remain to "~".
>>>
>>> The same sequence with cmd window change the title to "~/bin"
>>>
>>> The title is correctly updated only after I close emacs and push a=20
>>> return to the main window.
>>>
>>> Any explanation? Thanks
>> Noted first, this is in any case not a mintty issue as mintty updates=20
>> the title whenever it receives the respective escape sequence. The=20
>> scenario sounds weird, however. Is the background process=20
>> continuously sending title escape sequences? But 'emacs &' looks like=20
>> you're starting a GUI instance of emacs, right? So why should it?
> Try to isolate the background instance from the terminal:
> emacs > /dev/null 2>&1 &
>
Even if your proposal solve the issue, I have a question of what's=20
append in the two different cases.
I use the same sequence (1/ cd ztry 2/ launch emacs ("emacs &" or "emacs=20
> /dev/null 2>&1 &" 3/ cd .. 4/ exit emacs 5/ newline 6/ ^D) with=20
mintty configure for logs.
The log for the first case (mintty1459.log) is strongly longer that the=20
second one (mintty1470.log). It look like the wall window content is=20
rewritten each time a line is added.
I would appreciate if someone can give me some explanation. It look like=20
that I have the same kind of behavior with other program (i.e. scala=20
repl or sbt)
Thanks
--=20
Luc DOT Henninger AT orange DOT fr +33 6 32 96 32 27
--=20
L'absence de virus dans ce courrier =C3=A9lectronique a =C3=A9t=C3=A9 v=C3=
=A9rifi=C3=A9e par le logiciel antivirus Avast.
https://www.avast.com/antivirus
--------------14CA5782812F68E241F906D4
Content-Type: application/octet-stream;
name="mintty1459.log"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="mintty1459.log"
G10wO34HG1szMm1MdWNATXVsYW4gG1szNW1+G1swbQ0NCiQgY2QgenRyeS8NChtdMDt+L3p0
cnkHG1szMm1MdWNATXVsYW4gG1szNW1+L3p0cnkbWzBtDQ0KJCBlbWFjcyAmDQpbMV0gMTQ2
Nw0KG10wO34venRyeQcbWzMybUx1Y0BNdWxhbiAbWzM1bX4venRyeRtbMG0NDQokIBtbPzI1
bBtbMzJtG1tITHVjQE11bGFuIBtbMzVtfhtbbRtbMTA5WBtbMTA5Qw0KJCBjZCB6dHJ5Lxtb
MTEwWBtbMTEwQxtbMzJtDQpMdWNATXVsYW4gG1szNW1+L3p0cnkbW20bWzEwNFgbWzEwNEMN
CiQgZW1hY3MgJhtbMTExWBtbMTExQw0KWzFdIDE0NjcbWzExMlgbWzExMkMbWzMybQ0KTHVj
QE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sxMjBYG1sxMjBDDQobWzEyMFgbWzEyMEMN
ChtbMTIwWBtbMTIwQw0KG1sxMjBYG1sxMjBDDQobWzEyMFgbWzEyMEMNChtbMTIwWBtbMTIw
Qw0KG1sxMjBYG1sxMjBDDQobWzEyMFgbWzEyMEMNChtbMTIwWBtbMTIwQw0KG1sxMjBYG1sx
MjBDG1s3OzNIG1s/MjVoY2QgLi4bWz8yNWwNChtbPzI1aBtbPzI1bBtbMzJtTHVjQE11bGFu
IBtbMzVtfhtbbQ0KJCAbWzlYG1s5QxtbOTszSBtbPzI1aA0KWzFdKyAgRmluaSAgICAgICAg
ICAgICAgICAgICAgZW1hY3MgICh3ZCA6IH4venRyeSkNCihtYWludGVuYW50LCB3ZCA6IH4p
DQobXTA7fgcbWzMybUx1Y0BNdWxhbiAbWzM1bX4bWzBtDQ0KJCBkw6ljb25uZXhpb24NChtb
SBtbMkobWzNK
--------------14CA5782812F68E241F906D4
Content-Type: application/octet-stream;
name="mintty1470.log"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="mintty1470.log"
G10wO34HG1szMm1MdWNATXVsYW4gG1szNW1+G1swbQ0NCiQgY2QgenRyeS8NChtdMDt+L3p0
cnkHG1szMm1MdWNATXVsYW4gG1szNW1+L3p0cnkbWzBtDQ0KJCBlbWFjcyA+IC9kZXYvbnVs
bCAyPiYxICYNClsxXSAxNDc4DQobXTA7fi96dHJ5BxtbMzJtTHVjQE11bGFuIBtbMzVtfi96
dHJ5G1swbQ0NCiQgY2QgLi4NChtdMDt+BxtbMzJtTHVjQE11bGFuIBtbMzVtfhtbMG0NDQok
IA0KWzFdKyAgRmluaSAgICAgICAgICAgICAgICAgICAgZW1hY3MgPiAvZGV2L251bGwgMj4m
MSAgKHdkIDogfi96dHJ5KQ0KKG1haW50ZW5hbnQsIHdkIDogfikNChtdMDt+BxtbMzJtTHVj
QE11bGFuIBtbMzVtfhtbMG0NDQokIGTDqWNvbm5leGlvbg0KG1tIG1syShtbM0o=
--------------14CA5782812F68E241F906D4
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
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
--------------14CA5782812F68E241F906D4--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |