delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/01/03:10:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 1 Jun 2001 09:10:21 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: some newbie questions about the c++ libraries included in Cygwin...
Message-ID: <20010601091021.H1870@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <F196Dp7mvjkO22ZhCl800008b97 AT hotmail DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <F196Dp7mvjkO22ZhCl800008b97@hotmail.com>; from valcados0@hotmail.com on Thu, May 31, 2001 at 11:21:01PM -0700

On Thu, May 31, 2001 at 11:21:01PM -0700, valcados NOLASTNAME wrote:
> my 2 questions are...  what function to use, and which included header file 
> to use  (assuming this is included in Cygwin) to change the cursor position? 
>   the equivalent to the "locate" command in basic...  the function my 
> textbook uses for this requires a header file only in an expensive compiler. 
>   And, which function/header file to change the color of the text sent to 
> stdout?  Again, the function in my textbook requires an expensive compiler.  
> I tried looking through the header files in /cygwin/usr/... but it seemed 
> like they consisted 99% of declarations and #defines and such, without any 
> actual function(s) in sight.

That's not a compiler thingy. If you need specific functionality
in C/C++, you'll need to know in which library you can find them.
Most standard stuff (file IO, etc) is already linked in by default
but what you want is terminal control. You'll find that in the
ncurses package. Since you can't simply use a function to control
the cursor but you'll have to follow some preliminaries I suggest
reading the ncurses man pages which are pretty good:

	man ncurses

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019