From: defaria@hpclapd.HP.COM (Andy DeFaria)
Subject: Re: Keyboard input
Date: 21 Sep 90 17:50:08 GMT [thread overview]
Message-ID: <920031@hpclapd.HP.COM> (raw)
In-Reply-To: 39@screamer.csee.usf.edu
>/ hpclapd:comp.lang.ada / sampson@cod.NOSC.MIL (Charles H. Sampson) / 4:20 pm Sep 20, 1990 /
> Lots of operating systems give the programmer the ability to read
>individual keystrokes, in addition to reading entire lines. I've always
>assumed that the "usual" Ada approach to inputting single characters
>(above) was an implementation decision: If the individual keystrokes
>are read, the system's line-editing features (backspace, start over, etc.)
>are either lost or must be duplicated in the Ada program. If they're
>lost, the program becomes very user-unfriendly. For example, if the
>user enters "A-backspace-B", more than likely only the "B" appears on
>the screen, but the Ada program has seen all three characters and might
>even emit an error message about them, which looks like it's complaining
>about the "B". Implementors, is my assumption about your decision right?
Sure, sure, sure... But what if he Ada programmer, like the initial poster,
*WANTS* to do their own single character I/O and handle any editting
process, perhaps to provide a different, more friendly or consistent
editting process, huh? How does he/she do it?
P.S. I hate when people don't answer the question posed
P.S.S. I'm also not answering the question but I don't know the answer.
Perhaps the solution is to call the OS routine (read or getc) but
that isn't Ada or portable.
next prev parent reply other threads:[~1990-09-21 17:50 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-09-18 20:32 Keyboard input Gregory M. Stelmack
1990-09-19 19:27 ` Terry J. Westley
1990-09-20 20:29 ` Gregory M. Stelmack
1990-09-20 23:20 ` Charles H. Sampson
1990-09-21 17:50 ` Andy DeFaria [this message]
1990-09-22 20:13 ` Michael Feldman
1990-09-24 8:58 ` Richard A. O'Keefe
1990-09-24 13:58 ` Michael Feldman
1990-09-24 16:27 ` Keyboard input on IBM mainframes Jerry Callen
1990-09-24 17:44 ` Ada " Michael Feldman
1990-09-26 13:16 ` ryer
1990-09-26 0:16 ` Keyboard input Chris Holl @adonna
1990-09-22 0:21 ` Naasif Gierdien
1990-09-22 0:25 ` Naasif Gierdien
1990-09-24 16:18 ` Andy DeFaria
1990-09-25 14:11 ` Edward Falis
1990-09-25 15:10 ` Michael Feldman
1990-09-25 18:13 ` John Prentice
1990-09-25 13:36 ` stt
-- strict thread matches above, loose matches on Subject: below --
1990-09-24 19:00 "EDWARD CRAGG"
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox