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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,910b4871e877feea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-17 22:27:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!nwrddc01.gnilink.net.POSTED!da33a4ab!not-for-mail From: Fionn mac Cuimhaill Newsgroups: comp.lang.ada Subject: Re: help with Ada95 Message-ID: References: X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 18 Jun 2003 05:27:11 GMT NNTP-Posting-Host: 4.3.232.129 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc01.gnilink.net 1055914031 4.3.232.129 (Wed, 18 Jun 2003 01:27:11 EDT) NNTP-Posting-Date: Wed, 18 Jun 2003 01:27:11 EDT Xref: archiver1.google.com comp.lang.ada:39372 Date: 2003-06-18T05:27:11+00:00 List-Id: On Tue, 17 Jun 2003 22:47:45 -0500, "Cephus�" wrote: >Hey guys I have this book: Ada 95 3rd edition (gold (maybe yellow in color) >Problem Solving and Program Design by Feldman and Koffman. > >They provide all of their code from the book examples and I am trying to use >a package of theirs dealing with the screen... here is the package spec and >body. Please tell me what is wrong with it... > >Screen.ads: >-- constants; the number of rows and columns on the terminal ... snip ... > >Ada.Text_IO.Put (Item => 'f'); > >END MoveCursor; > >END Screen; > > > >sorry for the text, I just copied it straight from the compiler > > This kind of question keeps coming up, is there no FAQ for this ng? The basic assumption behind the design of the package body is that output is going to an ANSI-compliant dumb terminal. If you compile this code on current versions of Windows (2000, XP) you get screwy results when you use it because the Windows console is not ANSI-compliant. You need a completely different package body, one which uses the Windows console API, in order to implement the spec on Windows. I presume that you are using Windows; otherwise, you probably wouldn't be asking the question.