From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by sourceware.org (Postfix) with ESMTPS id 6C5AA385BF92 for ; Wed, 1 Apr 2020 12:20:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6C5AA385BF92 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net Received: from [192.168.178.45] ([95.90.246.248]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MBltK-1jTYWU0jtc-00CCGk for ; Wed, 01 Apr 2020 14:20:18 +0200 Subject: Re: Issue with mintty: title not updated when background process exists To: cygwin@cygwin.com References: From: Thomas Wolff X-Tagtoolbar-Keys: D20200401142017747 Message-ID: <7ea4c66b-5463-dccb-9a19-acd0ffb546c0@towo.net> Date: Wed, 1 Apr 2020 14:20:17 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:g2R7dgVeEqlB1jj8y7am9ccYHNOBizHLLaUd/OvTafY1ctMPkFq kSHCx45lWIDMRLPor9mhuHEh/3qImqTIHLdlPhe2+48iTepK4Yu8nBOT3brpsmrOQ1T9CEe Ar2gEX6FUaf/hSFCNrHXQRTdKxQyN9sGgQmmmlr/LIN0JagesITuLdmd8ay0FSb5vKq/JfU eQTwl/xvYRJPvaY+qd/7A== X-UI-Out-Filterresults: notjunk:1;V03:K0:Sf0PV4/KT44=:51PuKOXIFpu38xQjR0NeDg qC8SNQyeeVXF6bbl0QJJOpHjmdOgMB09YRnbxDJlBTv9eNSG9l3FaC56HQ2Gu7jWXc02qIEvQ XFyEmNQqFiLlExhk7O4Dl47iqaSUH4FTJlEMfyqfCevf05YK9ep4RmOhO/MiiIIEM1ze1a5Gk EaoXX2Jn81FIRBtatYjfWnG6lmqGmKrZbZb9Edph2/63Ov0EIXfJ9jw4LlVPAfevUXnRZ2VJE TTGQMD9FOvY70JB6DA49K0no7A4uRcCuYSwfkyRz1XW1fUnb1R7wcHrXihpCFhcQ/NLRUwsY/ ehLgyUcEwEAk61jzW+NSv454E6c0Tyf2zdLGWWOh9FTo0coZ6CthzpWjoBfMvjlRUhhBfknb7 7gF94VlSHvz4SAozmcuuOmP/jRp0o6tvbDkxuxaRMeow7JGs4Vm6IQzwEpVMKrhIe75nPf5FW mBKUnHfrkJM8N2OU/G6ddSvCghV+mp4Mq6c8zTVwPr7RnLOLrp5fpW3oFR8fu/GVLIS/LHvGu kNkjurN4MDzPZvrnS+T4uJJ9C0iK/4+UTMhOm0Nvz/aZ9hKGPWmF3vvEjV4+u2nf5iUoW6aBO 6BNIcCvuwrdZZiwhT0KNfCVpscTC8VKP7EuJE4juuKRUuTw65OxTXJ7Nh55BMH7d/BQ2YIgS2 CBwQiJXysZ7XBC9nG/pc2iYuSLOipWsMxyrZ5OQSq+4C4HImxqgmptPkJN44NN2SrkmEQEoHq KrBpZ9XotbuCqFKwSiite4bNWjSZe54FX4WW138QGVfx/4Ou03SGIpH9/CNpnbWQjDnA9pby+ 7jruN8/FEWxkoUGUiRR/IwGelpz/pFCrQYhyx8uwj1MQr50K5E= X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Wed, 01 Apr 2020 12:20:20 -0000 Am 01.04.2020 um 13:07 schrieb Luc Henninger: > Hello, > > I have defined the PS1 variable as follow > PS1='\[\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 >   Luc@Mulan ~ >   $ emacs & >   [1] 371 >   Luc@Mulan ~ >   $ cd bin >   Luc@Mulan ~/bin >   $ > 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 > return to the main window. > > Any explanation? Thanks Noted first, this is in any case not a mintty issue as mintty updates the title whenever it receives the respective escape sequence. The scenario sounds weird, however. Is the background process continuously sending title escape sequences? But 'emacs &' looks like you're starting a GUI instance of emacs, right? So why should it? Thomas