Article View: comp.sys.amiga.tech
Article #4725Character I/O from the 'CON:'sole
From: sullivan - segall
Date: Mon, 06 Aug 1990 06:14
Date: Mon, 06 Aug 1990 06:14
30 lines
1651 bytes
1651 bytes
Does anyone know how to get immediate keyboard events from the
default console? (I.e: The one that is attached to the CLI.)
I've tried finding it in the system lists (unsuccessfully) and
I've tried setting the raw keyboard events Ansi command:
puts("\x9b" "1{");
The latter seems to lock to the program up permanently. It
becomes impossible to get a linefeed because the return key
has been converted into an escape sequence, and getchar() seems
to want a complete line before continuing.
I need an example that will allow me to react to keyboard input
the way the Commodore supplied "more" command does.
I asked once before and got no replies, so I hit the books and I'm
still stumped. I'd really appreciate the help, or any indication
of the right place to look.
-Sullivan_-_Segallc(a.k.a. Radagast)
_______________________________________________________________
/V\ "I regret to say that we of the FBI are powerless to act in
' cases of oral-genital intimacy, unless it has in some way
obstructed interstate commerce." -- J. Edgar Hoover
_______________________________________________________________
Mail to: ...sun!portal!cup.portal.com!radagast or
radagast@cup.portal.com
Technical Details
Message-ID:
<32495@cup.portal.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!portal!cup.portal.com!RadagastShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!portal!cup.portal.com!Radagast From: Radagast@cup.portal.com (sullivan - segall) Newsgroups: comp.sys.amiga.tech Subject: Character I/O from the 'CON:'sole Message-ID: <32495@cup.portal.com> Date: 6 Aug 90 06:14:21 GMT Distribution: na Organization: The Portal System (TM) Lines: 30