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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a83ac04244a76ea9 X-Google-Attributes: gid103376,public From: Juergen.Pfeifer@t-online.de (Juergen Pfeifer) Subject: Re: Terminal IO, and menus Date: 1999/04/01 Message-ID: <3702AD4D.1EE439A4@t-online.de>#1/1 X-Deja-AN: 461345433 Content-Transfer-Encoding: 8bit References: <7drb1p$48k$1@nw001t.infi.net> X-Accept-Language: en X-Sender: 06162912249-0001@t-online.de Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@t-online.de X-Trace: news08.btx.dtag.de 922922319 29690 06162912249-0001 990331 23:18:39 Organization: Familie Pfeifer Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-04-01T00:00:00+00:00 List-Id: Jerry van Dijk wrote: > > Heath Isler (isler@gfherald.infi.net) wrote: > > : My question is is there a way in the stadard packages to Clear the Screen > : and postition the cursor in a specific location, i.e. Locate_Cursor (x => > : 10, y =>15); ? I am plan on using this for menus and data input. > > This is an inherentely OS bounded question. For DOS, you can do this with > the conio binding that comes with EZ2LOAD, for Win32, NT_Console does this > sort of thing. For linux there is the curses binding, etc. > > Two years ago I tried to get people to agree on a singe console control > package standard, but there was, alas, no interest in this... > Well, I'm very interested too. Of course I first suggest to port (n)curses to DOS and Win32, which will be more simple with one of the next releases of ncurses which redesigns some of the internals to base it on a "driver" logic. This will make it very fast and thin on memory mapped devices like DOS or Win32 consoles. For Ada you may then use the ncurses binding as your cross-platform console I/O package that works on DOS, OS/2, Win32 and almost all UNIXes. It is for sure possible to write the above mentioned "Drivers" for the coming new ncurses in Ada95. These drivers do only some very low level operations on consoles. J�rgen