71B: DISP, KEY$, and keyboard buffer
|
04-23-2021, 01:10 AM
(This post was last modified: 04-23-2021 01:12 AM by Dave Britten.)
Post: #4
|
|||
|
|||
RE: 71B: DISP, KEY$, and keyboard buffer
Here's a little mockup that behaves the way I'd like it to work.
Code: 10 DELAY 8,8 @ ! MAKE DISP WAIT FOR A KEYSTROKE As you can see, it's a lot of code, so I'm wondering if there's a more elegant way to do this. Maybe a LEX file with a DISP replacement that behaves this way? In other words, this process flow: 1. Display something on screen. 2. Stop and wait for a keystroke before continuing (don't care which key is pressed - any results from using KEY$ or KEYWAIT$ for this purpose can be discarded). 3. Clear the display to indicate that the program has resumed running. 4. Clear out the keyboard buffer so whatever key was pressed to continue after the pause isn't seen by any subsequent INPUT, or the command line, etc. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)