delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/01/07:15:43

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 6D927385BF92
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 13:07:22 +0200
X-ME-IP: 82.123.47.89
To: cygwin AT cygwin DOT com
From: Luc Henninger <luc DOT henninger AT orange DOT fr>
Subject: Issue with mintty: title not updated when background process exists
Message-ID: <c0d8bcc6-5620-dcf8-d462-02083d85c41d@orange.fr>
Date: Wed, 1 Apr 2020 13:07:21 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.6.0
MIME-Version: 1.0
X-Antivirus: Avast (VPS 200401-0, 01/04/2020), Outbound message
X-Antivirus-Status: Clean
X-Spam-Status: No, score=2.3 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, SPOOFED_FREEMAIL,
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 031BFOUl010630

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 AT Mulan ~
   $ emacs &
   [1] 371
   Luc AT Mulan ~
   $ cd bin
   Luc AT 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
Regards

-- 
Luc DOT Henninger AT orange DOT fr    +33 6 32 96 32 27


-- 
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus

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