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,e0a4f71785e791b4 X-Google-Attributes: gid103376,public From: "Tarjei T. Jensen" Subject: Re: Clearscreen? Date: 2000/04/13 Message-ID: <8d48oj$62r3@ftp.kvaerner.com>#1/1 X-Deja-AN: 610611880 Content-Transfer-Encoding: 7bit References: <20000412234637.25772.00001239@ng-fk1.aol.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Organization: Kv�rner Group IT Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-13T00:00:00+00:00 List-Id: SPick60809 wrote in message <20000412234637.25772.00001239@ng-fk1.aol.com>... >Hi > >Simple question I hope :-) >I am working on a basic banking system, with various menus and need to be able >to clear the screen to avoid clutter and confusion. I'm familiar with Clscr; in >Pascal but cannot find the Ada option. I assume that you are using Gnat and a console window either on windows or linux/unix. Take a look at http://www.adapower.com/ and look for a suitable console i/o package for your operating system. If you don't find one there, take a look at Michael Feldmans example code (start searching at http://www.seas.gwu.edu/~mfeldman/cs1book). He has a simple console I/O package somewhere which probably does what you want. If you cannot find anything, then you can write your own. This may be more trouble than it is worth. Find a guide to vt100/vt220/vt320/vt420/vt520 escape sequences either in a local library or on the net and start writing. Remember you have to flush the output every time you need to syncronize your program with the screen. If you don't like the ada i/o library, write your own stuff by creating your own binding to a convenient C library. The routines you probably want to use are read() and write(). You should possibly also have a look at creat(), open(), ioctl() and fcntl(). There might be problems synchronising I/O from this stuff and your ordinary text io stuff. Greetings,