Keyboard input/Flush the keyboard buffer: Difference between revisions

Content deleted Content added
Add Bash solution
Line 43:
<lang axe>While getKey(0)
End</lang>
 
=={{header|Bash}}==
 
The <code>-t 0</code> should theoretically work, but it does not seem to for tests that have been tried in cygwin and FreeBSD.
 
<lang bash>while read -t 0.01; do
true
done</lang>
 
=={{header|BASIC}}==