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 |
From: | gobo AT gobo-net DOT de |
To: | cygwin AT cygwin DOT com, pjacklam AT online DOT no |
Subject: | RE: csh color codes |
X-Sender-IP: | 143.164.98.120 |
Message-Id: | <E1AmDnJ-0008UD-00@mrelay01.kundenservices.net> |
Date: | Thu, 29 Jan 2004 16:09:25 +0100 |
Thanks a lot, this works perfectly! Best regards, Jochen =8-) > Why not use printf and \033 for the escape character? The > following prints "xxx yyy zzz" where "yyy" is green: > > printf 'xxx \033[32myyy\033[m zzz' > > Here is a list showing other escape sequences > > # foreground colours > printf '\033[30m black \033[m' > printf '\033[31m red \033[m' > printf '\033[32m green \033[m' > printf '\033[33m yellow \033[m' > printf '\033[34m blue \033[m' > printf '\033[35m magenta \033[m' > printf '\033[36m cyan \033[m' > printf '\033[37m white \033[m' > > # background colours > printf '\033[40m black \033[m' > printf '\033[41m red \033[m' > printf '\033[42m green \033[m' > printf '\033[43m yellow \033[m' > printf '\033[44m blue \033[m' > printf '\033[45m magenta \033[m' > printf '\033[46m cyan \033[m' > printf '\033[47m white \033[m' > > # other > printf '\033[0m default \033[m' > printf '\033[1m bold \033[m' > printf '\033[2m faint \033[m' > printf '\033[3m italic \033[m' > printf '\033[4m underlined \033[m' > printf '\033[5m slowblink \033[m' > printf '\033[6m rapidblink \033[m' > printf '\033[7m negative \033[m' > > Peter > > -- > Peter J. Acklam - pjacklam AT online DOT no - http://home.online.no/~pjacklam > > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |