Keyboard input/Flush the keyboard buffer: Difference between revisions

(Add Bash solution)
Line 39:
Put_Line (Get_Line);
end Flushtest;</lang>
=={{header|AWK}}==
<lang AWK>
# syntax: TAWK -f KEYBOARD_INPUT_FLUSH_THE_KEYBOARD_BUFFER.AWK
BEGIN {
while (kbhit()) {
getkey()
}
exit(0)
}
</lang>
 
=={{header|Axe}}==
477

edits