comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Different behavior of get_immediate in different OSs
Date: 1999/01/29
Date: 1999-01-29T00:00:00+00:00	[thread overview]
Message-ID: <78rfcu$k6b$1@plug.news.pipex.net> (raw)
In-Reply-To: Pine.GSO.3.95.990114184027.6300D-100000@tsc1.cps.unizar.es

(Fernando Tricas wanted Get_Immediate to work the same for different OSes.)

Unfortunately, this is one of those areas where there are always likely to
be discrepancies between Ada implementations, especially when they're
targeting significantly different operating systems. If you haven't already,
you might try using the Get_Immediate variation which have the Available
parameter, since this might (just maybe) work more consistently: I would
guess putting this in a loop with a small delay (perhaps 0.2 seconds) should
work okay (hardly ideal though).

From the Ada programming FAQ:

[If you don't have an Ada 95 compiler but have a POSIX binding,] there is a
package using POSIX services that provides non-blocking, keystroke-at-a-time
access to the terminal. It is available by FTP in file

ftp://ftp.adahome.com/pub/FAQ/inkey.ada

Using POSIX instead of Get_Immediate might be a way forward for you - but
then, of course, this is a solution that will be confined to implementations
where a POSIX binding is available.

-------------------------------------------
Nick Roberts
-------------------------------------------







      reply	other threads:[~1999-01-29  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-14  0:00 Different behavior of get_immediate in different OSs Fernando Tricas
1999-01-29  0:00 ` Nick Roberts [this message]
replies disabled

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