Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; 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