comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Get_Immediate
Date: Wed, 10 Dec 2003 18:44:52 GMT
Date: 2003-12-10T18:44:52+00:00	[thread overview]
Message-ID: <EQJBb.9103$rP6.2991@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <344d0fee.0312100800.33df6ea9@posting.google.com>

Xavier Serrand wrote:

> I have to work with Ada 83 .... and,
> I have to use the functionnality of Get_Immediate (return immediately
> after the keystroke and no echo)
> 
> I tried to interface with c (getch)... it works fine ... with Ada
> 95...
> I can't interface with Ada 83 ... because i have none of the specific
> package to do this work ...
> 
> Could somebody give me a better idea if it's no possibility to find
> old packages to interface with c ...

Your compiler vendor probably supplies a package with this capability, 
or that allows you to create this functionality. I wrote a keyboard 
package for DOS in Ada 83 that provided this functionality using a 
vendor-supplied package to make DOS calls.

You should also be able to import getch using pragma Interface in Ada 83:

function Getch ...;
pragma Interface (C, Getch);

Many compilers also supported pragma Interface_Name to supply the 3rd 
parameter of pragma Import:

pragma Interface_Name (Getch, "getch"); -- IIRC

-- 
Jeff Carter
"Perfidious English mouse-dropping hoarders."
Monty Python & the Holy Grail
10




  parent reply	other threads:[~2003-12-10 18:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 16:00 Get_Immediate Xavier Serrand
2003-12-10 18:33 ` Get_Immediate tmoran
2003-12-11  2:32   ` Get_Immediate Xavier Serrand
2003-12-11  7:37     ` Get_Immediate tmoran
2003-12-11 15:38       ` Get_Immediate Robert A Duff
2003-12-10 18:44 ` Jeffrey Carter [this message]
2004-01-23 16:03   ` Get_Immediate mla154
  -- strict thread matches above, loose matches on Subject: below --
1997-08-21  0:00 floating point comparison Robert Dewar
1997-08-22  0:00 ` Jim Carr
1997-08-22  0:00   ` Robert Dewar
1997-08-23  0:00     ` Jim Carr
1997-08-24  0:00       ` Robert Dewar
1997-08-29  0:00         ` Andrew V. Nesterov
1997-08-29  0:00           ` Robert Dewar
     [not found]             ` <340DF1DD.2736@iop.com>
1997-09-07  0:00               ` Get_Immediate Robert Dewar
1997-09-07  0:00               ` Get_Immediate Robert Dewar
1997-09-08  0:00               ` Get_Immediate J Giffen
replies disabled

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