comp.lang.ada
 help / color / mirror / Atom feed
From: stt@inmet
Subject: Re: How do you read keystrokes in A
Date: 18 May 89 15:48:00 GMT	[thread overview]
Message-ID: <124000045@inmet> (raw)
In-Reply-To: 6430002@hpcupt1.HP.COM


They are called "representation clauses."
In particular, the one
to which you refer is an "address clause for an interrupt entry."

There are in fact a number of compilers which support interrupt entries.
However, the more critical issue is whether the operating
system provides an interface which gives non-kernel
code the chance to be informed when a key is typed.
Unix systems generally provide "signals" for
the Interrupt and Quit keys (often "^C" and "^\").
Getting a signal on any key is tougher.

For the purposes of the original question, "raw" or "cbreak"
mode would be adequate on Unix, but again, it depends
on whether the Ada run-time-system supports
these modes, or whether the user wants to "roll their own"
input routines (presumably using pragma Interface).

Similar capabilities exist in VMS, but
the same caveats apply (need support in RTS or roll-your-own).

Tucker Taft
Intermetrics, Inc.
Cambridge, MA

  reply	other threads:[~1989-05-18 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-05-03 22:30 How do you read keystrokes in Ada? Kurt T. Meyer
1989-05-11 11:59 ` Rick Conn
1989-05-13  2:02 ` John Wolf
1989-05-18 15:48   ` stt [this message]
1989-05-21 20:36     ` How do you read keystrokes in A William Thomas Wolfe,2847,
1989-05-21 23:11       ` Dik T. Winter
1989-05-22 15:43         ` William Thomas Wolfe,2847,
replies disabled

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