Issue with mintty: title not updated when background process exists

Luc Henninger luc.henninger@orange.fr
Wed Apr 1 11:07:21 GMT 2020


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
Regards

-- 
Luc.Henninger@orange.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



More information about the Cygwin mailing list