Mr. SMcNeill and Bplux
Since the beginning of this post, I was confused.
Asking me why chr $ (22) interferes in:
OF
_LIMIT 30
LOOP UNTIL INKEY $ = CHR $ (13)
Today I found out that chr $ (22) is not the real problem with the loop going two laps before stopping.
The keyboard buffer also holds CHR $ (13).
This is what causes the loop to start, without me pressing the Enter key.
See image
Wouldn't it be better to clean only the CR $ (13)?
It's rigged to do 100 repeated things before even exiting and checking the outside loop,
_Keydown works just fine AFTER 100 silly loops! (press enter 100 x's now we finally check if escape pressed!)
Try this for an inner loop of 100 times:
Bplus, perform very well by holding the ESC key while pressing ENTER
A única solução que encontrei para limpar o buffer.
Repita o:
DO
_LIMIT 30
LOOP ATÉ INKEY $ = CHR $ (13)
para limpar o CR $ (13).
Carlos