comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Riehle <rriehle@nunic.nu.edu>
Subject: Re: gnat console screen-package
Date: 1997/04/07
Date: 1997-04-07T00:00:00+00:00	[thread overview]
Message-ID: <Pine.GSO.3.95.970326163102.7542D-100000@nunic.nu.edu> (raw)
In-Reply-To: 33261E5D.45ED@dge.insa-tlse.fr


On Tue, 11 Mar 1997, Philippe wrote:

> I'm looking for a package that can let me position the cursor in
> a DOS window under win95. I'm using gnat 3.04
> I'm also looking for a package that polls for keyboard hits.
> 
> I'd appreciate any help.
> Aslak


  For the Janus compiler from RR Software, I have found the following
  to be useful for character-based displays:

  package Ada.Text_IO.Screen_IO is
     procedure Set_Cursor_Col (To : Positive);
     procedrue Set_Cursor_Row (To : Positive);
     procedure Cursor_Up      (To : Positive := 1);
     procedure Cursor_Down    (To : Positive := 1);
     procedure Cursor_Right   (To : Positive := 1);
     procedure Cursor_Left    (To : Positive := 1);
  end Ada.Text_IO.Screen_IO;

  with ANSI_IO;  -- a commonly available package (try Walnut Creek CD-ROM)
  package body Ada.Text_IO.Screen_IO is

      -- implement the exported services with ANSI_IO services.

  end Ada.Text_IO.Screen_IO;


  I know there is a problem implementing this with GNAT.  Apparently,
  one has to use a particular indentation scheme as well as some 
  special compiler switches to make it work.  But I have at least one
  client who has made it work with GNAT, so it is feasible.

  Richard Riehle

 







  reply	other threads:[~1997-04-07  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-11  0:00 gnat console screen-package Philippe
1997-04-07  0:00 ` Richard Riehle [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-03-18  0:00 Martin C. Carlisle
replies disabled

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