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-7-bit X-Google-Thread: 103376,683ed7548d27f705 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-05 20:16:29 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feeder.qis.net!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "B. Douglas Hilton" Newsgroups: comp.lang.ada Subject: Re: for a beginner... Date: Thu, 05 Jul 2001 23:21:31 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3B452EBB.88763BDD@engineer.com> X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 References: <3B4515F8.3076B3A6@engineer.com> <000901c105c6$288d58e0$03000004@p4g4r3> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:9533 Date: 2001-07-05T23:21:31-04:00 List-Id: ANSI was a terminal driver code that was used by a lot of old BBS and terminal software. If you had ANSI.SYS loaded or used and ANSI terminal then you could use escape codes to control the screen. I will use ^[ to represent ESC, which is octal code \033, for example ^[[ is \033[[ Clear screen: ^[[2J Clear to end of line: ^[[K Save cursor position: ^[[s Go to saved location: ^[[u Jump to screen 3:30: ^[[3:30H Turn subsequent text bright blue: ^[[1;34m Set text to gray: ^[[0m Take a look at this link: http://enterprise.aacc.cc.md.us/~rhs/ansi.html It explains the codes. From c, if you did: printf( "\033[1;34mThis is blue text\033[0m!\n") You would indeed have blue text assuming that you had an ansi driver working. Cheers! - Doug Beau Elliott wrote: > that ansi.sys thing can you explain that to me? because my prof said that to > see and use some of the screen pakcages that came with the book. do you know > what I am talking about? if you do, can you tell me how to use it? > ~Beau~ > beau@hiwaay.net > > ----- Original Message ----- > From: "B. Douglas Hilton" > Newsgroups: comp.lang.ada > Sent: Thursday, July 05, 2001 8:35 PM > Subject: Re: for a beginner... > > > Ah, hey dude, whats happenin! > > > > If you have gnat, then use, argh.. I forget... Gnat.OS? > > > > use Gnat.OS > > > > ... > > Gnat.OS.System("cls"); > > > > Help me out here vets, I forget the exact Annex... > > > > If you have ANSI.SYS loaded, the code is ESC[2J > > > > There is a small annex called "screen" that acts like > > an ANSI terminal emulator and even works with Win2k, > > which Win2k has more or less disables ANSI.SYS if > > you use CMD.EXE, old COMMAND.COM still has > > it but there are problems using it. > > > > I hate M$! When they screwed up ANSI.SYS that > > was the final straw. Now I can't even have a colorized > > DOS-Box prompt thanks to those idiots. With the kind > > of work I do, I need super automatic batch-mode, not > > click "OK" ten thousand times in a row every ten seconds. > > > > ( And I'm sure as sh!t not going to buy "Visual Studio" when > > I already have gnat / gtkAda working! ) > > > > Cheers! > > - Doug > > > > > > Beau wrote: > > > > > Is there an easy way to do a clear screen for the dos prompt? > > > like I have a bunch of data that I have put pauses in. It would be very > > > helpful if I could clear the screen after every pause. thanks, > > > -- > > > ~Beau~ > > > beau@hiwaay.net > >