Keyboard input/Flush the keyboard buffer: Difference between revisions

Content added Content deleted
(add task to ARM64 assembly Raspberry Pi)
Line 803: Line 803:
Strictly speaking *FX 15,1 is an Operating System command, but it is emulated in BBC BASIC for Windows. Alternatively the keyboard buffer may be flushed as follows:
Strictly speaking *FX 15,1 is an Operating System command, but it is emulated in BBC BASIC for Windows. Alternatively the keyboard buffer may be flushed as follows:
<lang bbcbasic> REPEAT UNTIL INKEY(0)=-1</lang>
<lang bbcbasic> REPEAT UNTIL INKEY(0)=-1</lang>
or:
<lang bbcbasic> REPEAT UNTIL INKEY$(0)=""</lang>


=={{header|C}}==
=={{header|C}}==