delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/19/06:45:45

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Escape colour codes
Date: Mon, 19 Mar 2007 11:44:30 -0000
Lines: 32
Message-ID: <etlt2v$aq0$1@sea.gmane.org>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/2.70.2067
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Hi,

I'm having a problem with colour escape codes for prompts in different 
applications and terminals. Basically it is like this.

lftp and yafc show a wrong prompt in the following terminals: cmd, 4nt, 
console and far manager. Basically each coloured part of the prompt is 
surrounded by two "funny faces" - the first is white and the second has 
the desired colour.

Let's say my prompt is "user AT host:directory" where "directory" is cyan. 
Then the prompt looks like this[1]:
user AT host:[FW][FC]directory[FC][FW]

The interesting thing is that the coloured prompts /do/ work in bash, zsh 
and screen[2] with cmd, 4nt, console and FAR manager.

Also the coloured prompts from lftp and yafc show correctly in rxvt. They 
also show correctly in Linux and Konsole so the syntax of the coloured 
prompt is correct.

What can I do to solve this problem?

$ uname -rv
1.7.0s(0.167/4/2) 20070316 16:11:46


Thorsten

[1] [FW] = "Funny Face white", [FC] = "Funny Face Cyan"
[2] Bash and Zsh use more or less the same syntax for colour escape 
prompts as lftp and yafc


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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