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

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 18:52:15 +0100 (CET)
From: Pavel Tsekov <ptsekov AT gmx DOT net>
X-X-Sender: ptsekov AT moria DOT atlanticsky DOT com
To: "Peter A. Castro" <doctor AT fruitbat DOT org>
cc: 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.21.0303210840470.13051-100000@gremlin.fruitbat.org>
Message-ID: <Pine.LNX.4.44.0303211846100.26631-100000@moria.atlanticsky.com>
MIME-Version: 1.0

On Fri, 21 Mar 2003, Peter A. Castro wrote:

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

With the latest version (4.6.0-2) you see '$' because the subshell is 
disabled by default, so no subshell prompt is read at all :) Use '-U' 
option to enable subshell and you should be able to see this behaviour.

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

See above :) Btw which is this previous version ? And is it running on 
Cygwin or other platform ? As you can see below I've verified that MC on 
Cygwin behaves exactly the same way as MC on Linux. What I think may be a bug 
(in MC) is that in console no prompt is shown at all when using zsh.

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


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