From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by sourceware.org (Postfix) with ESMTPS id 3E11C385BF92 for ; Wed, 1 Apr 2020 12:24:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E11C385BF92 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 (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MYvPq-1joXK40lFI-00UtG7 for ; Wed, 01 Apr 2020 14:24:16 +0200 Subject: Re: Issue with mintty: title not updated when background process exists To: cygwin@cygwin.com References: <7ea4c66b-5463-dccb-9a19-acd0ffb546c0@towo.net> From: Thomas Wolff X-Tagtoolbar-Keys: D20200401142415855 Message-ID: <0f8c0f14-f978-c487-5702-0fc8a6727ce5@towo.net> Date: Wed, 1 Apr 2020 14:24:15 +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: <7ea4c66b-5463-dccb-9a19-acd0ffb546c0@towo.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:wuo4//bdVPBfe+lMruvIKl/QqIoBeC/TtB3anG8EJkcC5qobfYp BuE2s0bH68l3n+dNj7TLwQWUWv5Ymwy5STVMCCpb/93dZokKG7LSYtZLLzJlFoo/70fT50K SCYnn7xnJalFyxhnXhIsOTx38y2H+j8inocl1nuye17eMcCQ8rGmbCsDQTWVCsOUPLjcNeI Ok476tC5qqDPkG+wpZbKw== X-UI-Out-Filterresults: notjunk:1;V03:K0:YHA2Gep0RrA=:gHstx3Dy7CKgUnZLirS8ra iFm7lgXkF2VAAfV/haEa+Yw2AkNZUV1eeB7LP9so8L4lmempJEPH48elHZFLs7D0qrJ7e0ube z462e+hsrQHlVPT5XT9Wkt9eR+WE/2xXx9MxPahkW46hhs+gYQO0q6xq2BedegWmMXo5m/Mxv Vz7uzheEsK/2uOYwIAzJQuBTG/KP4toE1XpYUdQksduwvMwQqI0UfZVtEgk2R8laN32NBHCFN BFYbOEtXkgSESeBfFoIMGrDsQ0XPegJ4b1xDvIiMi5dxWiGZcYHh8Jh/9FCHdbXvytdLSk+gK cE4e/d3fCJoxnMMhLxb330tahEPz5NGPWbflMrQnSzJ+BL9kcWpPZKQdUCLTAX3mtcSR0SKTT Wb1BfM5XCF77lgSfm7VwXY8nRbPGjuIICCKP3cR+tsqK0nJ2tTvrsX815FvoWBKd4gdoIWGqz m/s90SfjWOORYXiZVvt4IhUoqWre4g2Ydsioh/Kbx4tmjby5VObkCvZgLPD7if7PznjOegYlY XjlwH8078F/4SyLuy4kjg7hu6QfxCLf7B69yDictubodi/EWDnW2tJIlcRGfrKH0YZXnNxxYY rfqOb5z3vjVjGB0AtQ4LDwh99Rx29pBo1NwXf2PUoFTGKLeLmTUAM4C0Bn2jBvcXRvARYwD1Q MkGbXwniUbqEErQs2BqwQY8IF8F1FsJTNmi5HGdd0zUqCB7J93fx7VJT5wLHe4PFvcx4r3HeP QqA33N48ziA2aNyWImxOw5za2rqtblSDBWhn0IKj9YZPth4cplGvfZ/ZJzEV/SY8yKjVqi68/ aMMebpMamA4On0kRhUCPHS9KxPeZk+mY3HAKElepWJlBNofYn0= X-Spam-Status: No, score=1.3 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:24:18 -0000 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='\[\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? Try to isolate the background instance from the terminal: emacs > /dev/null 2>&1 &