[comp.sys.apple2] Applesoft redirection of INPUT

reeder@reed.UUCP (Doug Reeder) (05/27/90)

In article <331@ankh.ftl.fl.us> chin@ankh.ftl.fl.us (Albert Chin) writes:
_I am writing a program to emulate //gs CDA's on the II ...

_However, if the
_key is the one I want, how do I tell Applesoft that I have processed
_the input and it is to consider it already EATEN. 
_
_Albert Chin ... mthvax!mamia!albert

If your routine has already dealt with a keypress and you do not wish to
pass it on, simply call whatever routine you use to get a key from the
keyboard AGAIN, by looping back to the beginning of your routine.  If the
new keyress is one you're looking for, your routine will deal with it and
loop back again....  You simply have a loop that does not exit until you get
a keypress that you're not looking for.

Off on a tangent, on the IIc you could write an interrupt routine triggered
by a keypress, since keypresses can generate interrupts.  This would work
with any well behaived program and wouldn't be bothed by changes of the
input hook.  Now that I've thought of it, I'll have to write it.  What do
you IIc users out there want it to do? (Remember, I'm counting on both of
you to respond)


-- 
Doug Reeder                                   USENET: ...!tektronix!reed!reeder
from ARPA: tektronix!reed!reeder@berkeley.EDU BITNET: reeder@reed.BITNET

Things ain't what they used to  be... and they never were.