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,37c84cd461db9efe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-14 18:17:01 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!68.6.19.232.MISMATCH!west.cox.net!cox.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3E728D17.7030906@acm.org> From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Escape codes References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 15 Mar 2003 02:15:17 GMT NNTP-Posting-Host: 63.184.105.43 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1047694517 63.184.105.43 (Fri, 14 Mar 2003 18:15:17 PST) NNTP-Posting-Date: Fri, 14 Mar 2003 18:15:17 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:35359 Date: 2003-03-15T02:15:17+00:00 List-Id: J.Matthews wrote: > Can anyone explain why this doesn't work. I am fairly new to ADA and > would appreciate the help! > > with ada.text_io; use ada.text_io; > > procedure ClearScreen is > > begin > > Put (Item => ASCII.ESC); > Put (Item => "[2J"); > > end ClearScreen; > > It's meant to clear the screen but all it does is display a small > left arrow then [2J This has nothing to do with Ada. Your display does not recognize ANSI escape sequences. Note that you can write this as Put (Ascii.Esc & "[2J"); -- Jeff Carter "That was the most fun I've ever had without laughing." Annie Hall