delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Jon Hughes <jon AT phazm DOT com> |
Subject: | Re: Opening new cygwin window with arguments |
Date: | Tue, 17 Jan 2012 03:55:02 +0000 (UTC) |
Lines: | 33 |
Message-ID: | <loom.20120117T044609-960@post.gmane.org> |
References: | <CANc+RapKxS3xVVxtXo6=NYfpfvL=B2Sdk8xKaJ1UVPRKRgxvBA AT mail DOT gmail DOT com> <20120112033732 DOT GE9147 AT phoenix> <loom DOT 20120117T011442-614 AT post DOT gmane DOT org> <20120117023414 DOT GB20028 AT phoenix> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
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 |
Gary Johnson <garyjohn <at> spocom.com> writes: > > I'm afraid I don't understand the problem. Color _is_ enabled in > the new terminal. > > As an experiment/demonstration, I executed this command in my home > directory which happened to contain a text file, ls.out, in which > the word "out" appeared on a few lines. > > mintty -h a grep --color=always out ls.out > > The word "out" was colored in the new terminal just as I would > expect it to be. > > What command are you executing that has colored output when executed > at the command line but not when executed as an argument to mintty? > > Regards, > Gary > > This is the command I'm using: tail -f /foo/test.log | perl -pe 's/error/\e[1;31;43m$&\e[0m/g' When I do the following there is no color: mintty -h a tail -f /foo/test.log | grep --color=always error Your command does work correctly (to color based on a grep command parent, rather than chained) but I'm not sure how to correctly modify it to use tail while still coloring the errors. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |