* How do you read keystrokes in Ada?
@ 1989-05-03 22:30 Kurt T. Meyer
1989-05-11 11:59 ` Rick Conn
1989-05-13 2:02 ` John Wolf
0 siblings, 2 replies; 4+ messages in thread
From: Kurt T. Meyer @ 1989-05-03 22:30 UTC (permalink / raw)
Hi, I need to figure out how to read a single keystroke in
Ada. As far as I can tell, all available I/O routines wait
for a carriage return before returning input read from the
keyboard. Does anyone out there know of some code that does
this? I'm working with Ada on Vax/VMS.
Thanks in advance!
--Kurt (meyer@june.cs.washington.edu)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do you read keystrokes in Ada?
@ 1989-05-04 11:13 "EDWARD CRAGG"
0 siblings, 0 replies; 4+ messages in thread
From: "EDWARD CRAGG" @ 1989-05-04 11:13 UTC (permalink / raw)
There are no standard procedures in Ada for a live keyboard. Our
solution was to write package IMMEDIATE_IO which is a TEXT_IO clone
(and interchangeable with TEXT_IO) which passes all calls except
actual GETs and PUTs to TEXT_IO, GETs and PUTs are processed by direct
QIOW's. I have beta-test quality versions for both DEC Ada and ALS/N
ADAVAX.
............................................................
Edward E Cragg Bitnet: ECRAGG@GMUVAX
Internet: ECRAGG@GMUVAX.GMU.EDU
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do you read keystrokes in Ada?
1989-05-03 22:30 Kurt T. Meyer
@ 1989-05-11 11:59 ` Rick Conn
1989-05-13 2:02 ` John Wolf
1 sibling, 0 replies; 4+ messages in thread
From: Rick Conn @ 1989-05-11 11:59 UTC (permalink / raw)
The recently-announced ADA-TUTR in the Ada Software Repository
contains routines for single-character I/O using Verdix Ada on a SUN
(via a C interface), DEC Ada on a VAX (via the VAX/VMS I/O library), and
a second UNIX-C interface (I don't know the origin). These routines are
isolated in a system dependency package. See the file in PD1:<MSDOS.ADA> and
PD2:<ADA.EDUCATION> (comment file containing Verdix Ada/SUN).
Rick
-------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do you read keystrokes in Ada?
1989-05-03 22:30 Kurt T. Meyer
1989-05-11 11:59 ` Rick Conn
@ 1989-05-13 2:02 ` John Wolf
1 sibling, 0 replies; 4+ messages in thread
From: John Wolf @ 1989-05-13 2:02 UTC (permalink / raw)
If REPRESENTATIVE CLAUSES for interrupt vector addresses are supported
by your compiler then you could write your own charactor I/O interrupt
handler via Ada Tasking. See REPRESENTATIVE CLAUSE in the green book.
This would be a way to keep all your code Ada, i.e. not linking to
any foreign language objects (this would make the DoD happy). But I have
yet to find an Ada compiler where REPRESENTATIVE CLAUSES for interrupt
vectors are supported. Think of the Real-Time possibilities with High-Level
language programming if it were implemented.
jwolf@hpda.HP.COM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1989-05-13 2:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1989-05-04 11:13 How do you read keystrokes in Ada? "EDWARD CRAGG"
-- strict thread matches above, loose matches on Subject: below --
1989-05-03 22:30 Kurt T. Meyer
1989-05-11 11:59 ` Rick Conn
1989-05-13 2:02 ` John Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox