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-7-bit X-Google-Thread: 103376,fa56c83118d748b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-18 03:01:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.algonet.se!algonet!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: David Holm Newsgroups: comp.lang.ada Subject: Re: GNAT Ada - Clear Screen Message-ID: <20030418120111.2cea818c.david@realityrift.com> References: X-Newsreader: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Fri, 18 Apr 2003 10:01:27 GMT NNTP-Posting-Host: 217.208.105.88 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1050660087 217.208.105.88 (Fri, 18 Apr 2003 12:01:27 CEST) NNTP-Posting-Date: Fri, 18 Apr 2003 12:01:27 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:36280 Date: 2003-04-18T10:01:27+00:00 List-Id: Hi, there is an ncurses binding for Ada. I suggest you get that if you want to be able to do advanced console manipulations that work on all kinds of terminals. //David Holm On Fri, 18 Apr 2003 09:05:44 GMT Fingertip wrote: > Hello everyone, > > This is the first time I post here, so I hope I don't violate any > guidelines and/or rules you guys set here. > > Now, for my question: > > I am using a GNAT Ada compiler, and I want to be able to clear the console > window. > > I've searched the net for some solutions, but the only solutions I found > were: > ADA.TEXT_IO.NEW_PAGE; > > And: > ADA.TEXT_IO.NEW_LINE (24); > > The first solution doesn't really work. It just outputs the ASCII.FF char, > but it doesn't do anything. > > The second solution isn't much help, because it moves the marker to the > bottom of the screen. When I try to get it back to the top with: > ADA.TEXT_IO.SET_COL (1); > ADA.TEXT_IO.SET_LINE (1); > > It outputs the ASCII.FF character again, but does nothing else. > > I would appreciate any help you have to offer. > > Thanks in advace, > Fingertip