Keyboard input/Flush the keyboard buffer: Difference between revisions
Keyboard input/Flush the keyboard buffer (view source)
Revision as of 19:22, 30 December 2019
, 4 years ago→{{header|Ada}}
(Add Bash solution) |
Catskill549 (talk | contribs) |
||
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}}==
|