This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

zsh and MC was Re: [ANNOUNCEMENT] Updated: mc-4.6.0-1


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 at %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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]