Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
import "io" for Stdin
|
||||
|
||||
System.print("Press some keys followed by enter.")
|
||||
while (true) {
|
||||
var b = Stdin.readByte() // reads and removes a key from the buffer
|
||||
System.print("Removed key with code %(b).")
|
||||
if (b == 10) break // buffer will be empty when enter key pressed
|
||||
}
|
||||
System.print("Keyboard buffer is now empty.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue