From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,bbeba936b24f1d90 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-21 15:48:02 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!grolier!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Juergen Pfeifer Newsgroups: comp.lang.ada Subject: Re: modifying color of "Ada.Text_IO.Put" Date: Fri, 22 Dec 2000 00:44:27 +0100 Organization: Familie Pfeifer Message-ID: <3A4295DB.B8E1AD55@gmx.net> References: <3A425FFC.3831ACE2@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: news.t-online.com 977442268 05 14875 QIUeDobSeYsgb 001221 23:44:28 X-Complaints-To: abuse@t-online.com X-Sender: 340028232866-0001@t-dialin.net X-Mailer: Mozilla 4.74 [de] (X11; U; Linux 2.2.16 i586) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:3343 Date: 2000-12-22T00:44:27+01:00 List-Id: > in C and other programming languages it's simply possible to change > the background and foreground color of text plotted on screen. But GNAT= > doesn't seem to offer procedures to handle that. > = Pardon me, but can you give me the C-language statement that sets the color of a charactor on the screen? I'm doing C for 20 years and never heard about that feature of the language;-) But perhaps you mean that for C or other languages their exist conveniant libraries to do that. > Moving the cursor may work with "Set_Col" and "Set_Line", but i need > routines to change color as well! > = > Could anyone remember a small, simple easy-to-use package (OS > independent) or should it even be possible by using standard GNAT > packages? > = IMHO even in C you hardly find a library that does that kind of thing in an OS independent way. On most UNIXes and similar OS you'll find a library called curses (or ncurses on free OSes) which deals with screen manipulation in a terminal independent way. If you look into the sources of ncurses (ftp://ftp.gnu.org/pub/gnu/ncurses) you'll find there a quite complete Ada95 binding for this library. Modern curses implementations (lile ncurses) support also colors. The Ada95 binding for ncurses as BSD style license, so you are quite free to use it for whatever you want. J=FCrgen