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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f7fb64678248545,start X-Google-Attributes: gid103376,public From: aklee@no_spam.bonsai.net (Albert K. Lee) Subject: Re: text Date: 1997/06/10 Message-ID: #1/1 X-Deja-AN: 247344555 References: <339C698E.130BA7EB@ibm.net> To: Jorge Sainz Organization: The Bonsai Group Newsgroups: comp.lang.ada Date: 1997-06-10T00:00:00+00:00 List-Id: On Mon, 09 Jun 1997 22:37:34 +0200, Jorge Sainz wrote: >I'm new with ada so i have many questions, how can i put a nmber (for >example) in a specific position of the screen (for instance to make a >counter), and how can i clean th screen (cls, clear...) >Please answer me by email to the first one, >thanks... To output numbers, 'with' the package Ada.Integer_Text_IO. If you prefer, 'use' it too. Then you'll have the normal put/get procedures available. Your next question is tougher. There is nothing defined by the language for screen manipulation. There are, however, several ways to accomplish such feats. For one, you can roll your own and output ANSI color/positioning codes using Ada.Text_IO (try looking in a good DOS reference, like Microsoft's MS-DOS manual, under 'ANSI.SYS', or in various VT-terminal references). This will not *always* work, but it will work on many terminals. I believe the GNAT EZ2LOAD distribution for DOS comes with a screen manipulation package (PDCurses?), with Ada bindings, though I could be wrong about the details. If you want to do screen stuff in UNIX, the most recent ncurses distributions have GNAT/Ada 95 bindings. You might want to see if your machine is capable of compiling ncurses. If you have further questions about Ada, check out http://www.adahome.com, pick up a good book, and use this newsgroup. If you want to know where to find any of these packages, just followup in this newsgroup. HTH, and good luck! -Albert Lee