Keyboard input/Flush the keyboard buffer: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 1,552: | Line 1,552: | ||
It is necessary to type in some keys first (and have them echoed) to demonstrate that it is in fact working. 'Raw' mode can't be used here as keyboard input is not buffered in that mode. |
It is necessary to type in some keys first (and have them echoed) to demonstrate that it is in fact working. 'Raw' mode can't be used here as keyboard input is not buffered in that mode. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "io" for Stdin |
||
System.print("Press some keys followed by enter.") |
System.print("Press some keys followed by enter.") |