Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 21 Mar 2003 12:24:24 +0100 (CET) From: Pavel Tsekov X-X-Sender: ptsekov AT moria DOT atlanticsky DOT com To: Thorsten Kampe cc: cygwin AT cygwin DOT com Subject: zsh and MC was Re: [ANNOUNCEMENT] Updated: mc-4.6.0-1 In-Reply-To: <1l8bhrflwkx2n$.dlg@thorstenkampe.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 9 Mar 2003, Thorsten Kampe wrote: > Thanks. Midnight Commander has become better and the old bugs are > gone. > > Unfortunately there are now some new ones: [snip] > 2. If you start mc under zsh in a *console* window with the command > prompt option, no prompt is shown - just the cursor: > "_" instead of "thorsten AT freki% _" > > 3. If you start mc under zsh in a *rxvt* window with the command > prompt option, the prompt /is/ shown - but appended with the RPROMPT > (right side prompt): > "thorsten AT freki% /home/thorsten 1018:3_" instead of > "thorsten AT freki% _ ~ 1018:3" > > 2. and 3. are maybe related. These are my prompts in zsh: > > PS1='%n@%m%{'$'\e[1;36m%}%#%{'$'\e[m%} ' > > RPROMPT='%{'$'\e[1;34m%}%~%{'$'\e[m%} %h:%i' I see the same behaviour on Linux. I've tested with RedHat 8.0. So, as far as Cygwin is concerned this is not a bug. However I think that you're right to expect it to work as described. I'm doing some work to fix problem 3. In fact what happens is that the escape sequences are stripped by MC. With your settings for PS1 and RPROMPT zsh outputs this: \e[m\e[m\e[m\e[Jptsekov AT mordor\e[1;36m%\e[m\e[K\e[50C\e[1;34m/lib/cvs\e[m8:8\e[62D MC strips all control characters and leaves only: ptsekov AT mordor% /lib/cvs 8:8 As for problem 2 I'll have to trace a bit to see why no prompt is shown at all. I hope soon I'll be able to release an update version. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/