Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Wed, 30 Apr 2003 13:52:45 +0200 (CEST)
From: Ronald Landheer-Cieslak <ronald@landheer.com>
X-X-Sender: ronald@localhost.localdomain
To: Hans <hansydelm@yahoo.co.uk>
cc: cygwin@cygwin.com
Subject: Re: textcolor() for cygwin?
In-Reply-To: <b8mi5n$qom$1@main.gmane.org>
Message-ID: <Pine.LNX.4.44.0304301349481.23693-100000@localhost.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 29 Apr 2003, Hans wrote:
> This must be a simple question but for some reason my google search
> turned up nothing useful. I would like to change the textcolor using C,
> is there any simple way of doing this? I don't need screen control or
> anything fancy, just change some text strings to red,
Actually, changing the color of a displayed text is pretty fancy, if you 
ask me! How are you going to change the color on a B/W terminal? How are 
you going to know your terminal is B/W if you don't want to do something 
in the least bit fancy?

Anyway, try using curs_color(3X) from ncurses - that should help and does 
most of the fancy stuff for you :)

HTH

rlc

BTW: ncurses is in the Cygwin net distri, before anyone asks..



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

