From: jsa@alexandria (Jon S Anthony)
Subject: Re: How do I make HOTKEYS in ADA?
Date: 1996/10/11
Date: 1996-10-11T00:00:00+00:00 [thread overview]
Message-ID: <JSA.96Oct11151753@alexandria> (raw)
In-Reply-To: JSA.96Oct8161800@alexandria
In article <Dz24vt.1ox@thomsoft.com> kst@thomsoft.com (Keith Thompson) writes:
> In <JSA.96Oct8161800@alexandria> jsa@alexandria (Jon S Anthony) writes:
> > In article <3256B8C7.18F9@access.hky.com> Randy Kosarik <randyk@access.hky.com> writes:
> > > I need to know if I can get ADA to scan the keyboard and return the
> > > ASCII value if a keystroke was made.
> > Look up Get_Immediate.
> > > This also cannot stop the execution
> > > of the program and wait for <ENTER>.
> > You will need to use tasks or ATC for this.
>
> Not necessarily. There's a form of Get_Immediate that returns immediately
> if no character is available for input. Whether this is implemented
> "properly" is another question. (I put "properly" in quotes because
> there's some question about what the language really requires; the
> expected behavior, though, is pretty clearly what you're looking for.)
Well, yes, but I didn't read that as acceptable either. What you are
suggesting is some sort of "loop based scenario". But this could
cause odd and unacceptable timing skews: check for character. Nothing
at this moment. Drop to next part of loop. Do this work (might take
a while). Mean time user is hitting key wondering what the #@&% is
wrong. Finally get back to check for character...
To me, this sort of thing (and its attendent poor program structure)
is unacceptable C style rubbish.
/Jon
--
Jon Anthony
Organon Motives, Inc.
Belmont, MA 02178
617.484.3383
jsa@organon.com
next prev parent reply other threads:[~1996-10-11 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-05 0:00 How do I make HOTKEYS in ADA? Randy Kosarik
1996-10-07 0:00 ` Tucker Taft
1996-10-08 0:00 ` Jon S Anthony
1996-10-10 0:00 ` Keith Thompson
1996-10-10 0:00 ` Larry Kilgallen
1996-10-11 0:00 ` Robert Dewar
1996-10-11 0:00 ` Randy Kosarik
1996-10-15 0:00 ` John Herro
1996-10-11 0:00 ` Jon S Anthony [this message]
1996-10-14 0:00 ` Norman H. Cohen
1996-10-16 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox