Thanks Maury! Kevin
--- Maury Pepper <[EMAIL PROTECTED]> wrote: > Use the time-out feature of the READ command. > READ var:timeout > For example, R *x:0 will read one character and > set x to it's ascii value. > $T is set to 1 for a successful read, otherwise 0. > R x#1:0 will read one > character, but if you are looking for a control > character (eg, ESC) then the > star read makes more sense. There are a number of > related issues like echo > on/off, terminators and escape processing that can > complicate the situation. > > > ----- Original Message ----- > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > To: "Hardhats Sourceforge" > <[EMAIL PROTECTED]> > Sent: Friday, October 15, 2004 2:29 PM > Subject: [Hardhats-members] Mumps "keypressed" > function? > > > > Does M have a function such as KeyPressed? > > > > I have a loop that I want users to be able to exit > out > > of by pressing ESC. I would normally (in other > > languages) check if a key has been pressed. If > so, > > then stop, get character, and act on it. > > > > If I do this: > > read Input <-- will wait for input + return > > read *Input <-- will wait for input (without > return) > > > > Is there a way to continue if no input? > > > > Thanks > > Kevin > > > > > > > > _______________________________ > > Do you Yahoo!? > > Declare Yourself - Register online to vote today! > > http://vote.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product > Guide on ITManagersJournal > > Use IT products in your business? Tell us what you > think of them. Give us > > Your Opinions, Get Free ThinkGeek Gift > Certificates! Click to find out > more > > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Hardhats-members mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/hardhats-members > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide > on ITManagersJournal > Use IT products in your business? Tell us what you > think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! > Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Hardhats-members mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hardhats-members > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members