From: billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu (William Thomas Wolfe,2847,)
Subject: Re: How do you read keystrokes in A
Date: 21 May 89 20:36:48 GMT [thread overview]
Message-ID: <5549@hubcap.clemson.edu> (raw)
In-Reply-To: 124000045@inmet
From article <124000045@inmet>, by stt@inmet:
> 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).
This is an area in which a "secondary standard"
(maybe even a new predefined package!) is badly needed.
There should be some means whereby the application writer
can, in a straightforward and machine-independent way,
either call some function which will return an object whose
state will indicate which key was pressed (note: this is NOT
the same as returning ESC and then returning some other
character(s) on succeeding calls, the entire sequence of which
represents an arrow key or something of that nature...), or
establish a task entry which will be called when the next keystroke
occurs, with a similarly "high-level" interface. This will probably
require a larger carrier space than CHARACTER provides (unless 9X
upgrades CHARACTER to ISO Latin 1 (aka 8-bit ASCII)), but it's
something which definitely needs to be built up to an appropriate
level of abstraction.
Bill Wolfe, wtwolfe@hubcap.clemson.edu
next prev parent reply other threads:[~1989-05-21 20:36 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 ` How do you read keystrokes in A stt
1989-05-21 20:36 ` William Thomas Wolfe,2847, [this message]
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