comp.lang.ada
 help / color / mirror / Atom feed
From: "Tarjei T. Jensen" <tarjei.jensen@kvaerner.com>
Subject: Re: Clearscreen?
Date: 2000/04/13
Date: 2000-04-13T00:00:00+00:00	[thread overview]
Message-ID: <8d48oj$62r3@ftp.kvaerner.com> (raw)
In-Reply-To: 20000412234637.25772.00001239@ng-fk1.aol.com


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,









  reply	other threads:[~2000-04-13  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-13  0:00 Clearscreen? SPick60809
2000-04-13  0:00 ` Tarjei T. Jensen [this message]
2000-04-13  0:00   ` Clearscreen? Ted Dennison
2000-04-13  0:00 ` Clearscreen? Jerry van Dijk
2000-04-13  0:00 ` Clearscreen? Gautier
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox