Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!ai-lab!rice-chex!bson From: bson@rice-chex.ai.mit.edu (Jan Brittenson) Newsgroups: comp.sys.handhelds Subject: Re: (HP48SX) Strange behavior...bug? Message-ID: <14295@life.ai.mit.edu> Date: 23 Mar 91 02:20:48 GMT References: <990@sousa.enet.dec.com> Sender: news@ai.mit.edu Organization: nil Lines: 22 In a posting of [22 Mar 91 13:48:53 GMT] ervin@pinbot.enet.dec.com (Joseph James Ervin) writes: > Next, I tried this simple variation; I wanted to wait for 10 key > presses and then exit. > > \<< 1 10 FOR I DO UNTIL KEY END NEXT \>> > > Unfortunately, the actual number of key presses I must > make tends to vary from 10 to as high as 14. The same happens on my Rev D. It is further illustrated by pressing the shift keys. The shift key annunciators should only flicker, but sometimes stay on, indicating that the stroke was caught by something other than KEY. I bet this is why Tetris sometimes misses key strokes. The remedy is to use a SYSEVAL to read the keyboard buffer instead of using KEY which, it seems to me, attempts to override the buffer mechanism instead of using it. -- Jan Brittenson bson@ai.mit.edu