Bug #831

Input is clearing the keyboard buffer

Added by Paul Kitching about 2 years ago. Updated about 2 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected version:


In AMOS you could type or use Put Key before an input line appears and the keyboard buffer would then receive the key presses. In AOZ the input line is now always empty.

print "press a key"
wait key
print"type something quickly before the input line appears"
for x=1 to 120
    wait vbl
next x
input a$

Updated by Brian Flanagan about 2 years ago

Verified this is a problem. 9/19 version.

I wonder if it's just not really buffering anything?
It may be the same reason why Put Key will only put a single character (the last one) no matter how large of a string you send. (There's already another ticket for that issue.)


Updated by Francois Lionet about 2 years ago

  • Status changed from New to Rejected

I cannot correct that in a simple way with modern machines: this would imply having an internal keyboard buffer... Keys handling is very different in Javascript.
Is that such a big problem?


Updated by Brian Flanagan about 2 years ago

Yes it is a big problem, since keypresses can be lost, and it makes it impossible to implement macros, and the Put Key instruction.

A keyboard buffer in JavaScript is easier than you think.
Maybe when I have time I'll give it a shot...

Also available in: Atom PDF