delorie.com/archives/browse.cgi | search |
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 20:21:17 +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: | 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.21.0303210840470.13051-100000@gremlin.fruitbat.org> |
Message-ID: | <Pine.LNX.4.44.0303211940160.27369-100000@moria.atlanticsky.com> |
MIME-Version: | 1.0 |
On Fri, 21 Mar 2003, Peter A. Castro wrote: > > > 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% _" I found the reason. Now I should think about a fix :) I have something in mind but will take a day or two and maybe a discussion on the MC developers list. However here is short description of the problem for those interested. When reading the subshell prompt MC displays that part of it, which is contained between the last '\r' or '\n' character and the end of the prompt. If there are control characters in this part they are stripped - what's left is displayed to the user. Now, when run in console window under Cygwin, (same should be on Linux) with the TERM variable set to 'cygwin', zsh ouputs this sequence: \r\e[0;10m\e[m\e[24m\e[JAdministrator AT mordor\e[1;36m%\e[m \e[K\e[I\e[I\e[I\e[I\e[I\e[I\e[I \e[1;34m/\e[m 4:4\r\e[I\e[I\e[C\e[C\e[C\e[C\e[C\e[C Notice the final '\r' character, there is not a single printable character after it at all. So everything gets stripped and there is no prompt displayed in MC. From what I understand this control sequence wants to move the cursor right after the username AT host part of the prompt - '\e[C' on Cygwin is the cuf1 and kcuf1 terminfo capability. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |