Keyboard input/Flush the keyboard buffer: Difference between revisions
Content deleted Content added
Added Commodore BASIC |
Thundergnat (talk | contribs) Rename Perl 6 -> Raku, alphabetize, minor clean-up |
||
Line 39: | Line 39: | ||
Put_Line (Get_Line); |
Put_Line (Get_Line); |
||
end Flushtest;</lang> |
end Flushtest;</lang> |
||
=={{header|AWK}}== |
=={{header|AWK}}== |
||
<lang AWK> |
<lang AWK> |
||
Line 229: | Line 230: | ||
_STD_conio(); |
_STD_conio(); |
||
}</lang> |
}</lang> |
||
=={{header|DCL}}== |
=={{header|DCL}}== |
||
<lang>$ wait 0::10 ! gives us 10 seconds to get keystrokes into the type-ahead buffer |
<lang>$ wait 0::10 ! gives us 10 seconds to get keystrokes into the type-ahead buffer |
||
Line 255: | Line 257: | ||
<lang Euphoria>while get_key()!=-1 do |
<lang Euphoria>while get_key()!=-1 do |
||
end while</lang> |
end while</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Go}}== |
=={{header|Go}}== |
||
Line 309: | Line 319: | ||
} |
} |
||
</lang> |
</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Haskell}}== |
=={{header|Haskell}}== |
||
Line 369: | Line 371: | ||
end |
end |
||
</lang> |
</lang> |
||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |
||
Line 465: | Line 466: | ||
# Don't forget to restore the readmode, when we are finished using the keyboard |
# Don't forget to restore the readmode, when we are finished using the keyboard |
||
ReadMode 'restore';</lang> |
ReadMode 'restore';</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Line 556: | Line 519: | ||
(printf "You pressed ~a\n" (read-char))) |
(printf "You pressed ~a\n" (read-char))) |
||
</lang> |
</lang> |
||
⚫ | |||
(formerly Perl 6) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
Line 662: | Line 664: | ||
=={{header|Scala}}== |
=={{header|Scala}}== |
||
<lang scala>def flush() { out.flush() }</lang> |
<lang scala>def flush() { out.flush() }</lang> |
||
=={{header|Seed7}}== |
=={{header|Seed7}}== |
||
The Seed7 library [http://seed7.sourceforge.net/libraries/keybd.htm keybd.s7i] |
The Seed7 library [http://seed7.sourceforge.net/libraries/keybd.htm keybd.s7i] |