delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/21/12:40:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 09:25:29 -0800 (PST)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Pavel Tsekov <ptsekov AT gmx DOT net>
cc: Thorsten Kampe <thorsten AT thorstenkampe DOT de>, cygwin AT cygwin DOT com
Subject: Re: zsh and MC was Re: [ANNOUNCEMENT] Updated: mc-4.6.0-1
In-Reply-To: <Pine.LNX.4.44.0303211210390.20212-100000@moria.atlanticsky.com>
Message-ID: <Pine.LNX.4.21.0303210840470.13051-100000@gremlin.fruitbat.org>
MIME-Version: 1.0

On Fri, 21 Mar 2003, Pavel Tsekov wrote:

> 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% _"

Can you tell me just what options/key sequences you are using to start
mc?  I've just started mc in a console and I get a '$ ' for a prompt in
mc.  I have a minimal zsh env setup for this test and no ~/.inputrc. 

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

This is interesting.  In a previous version of mc this worked (sort of),
but only if PS1 and RPROMPT were set in .zshenv (or one of the other
commonly sources zsh files).  With the latest mc-4.6.0-2 I see just a '$'
no matter what I set where.  I get the '$ ' running mc in rxvt too.

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

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019