Jump to content

Keyboard input/Flush the keyboard buffer: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Changed to Wren S/H)
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.
<syntaxhighlight lang="ecmascriptwren">import "io" for Stdin
 
System.print("Press some keys followed by enter.")
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.