Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,2 +1,10 @@
Flush the [[input device::keyboard]] buffer. This reads characters from the keyboard input and discards them until there are no more currently buffered, and then allows the program to continue. ''The program must not wait for users to type anything.''
[[user input::task| ]]
[[user input::task| ]]
{{omit from|ACL2}}
{{omit from|GUISS}}
{{omit from|PARI/GP}}
Flush the [[input device::keyboard]] buffer.
This reads characters from the keyboard input and discards them
until there are no more currently buffered,
and then allows the program to continue. <br>
''The program must not wait for users to type anything.''

View file

@ -1,2 +1,6 @@
---
category:
- Hardware
- Terminal control
- Simple
note: Keyboard input

View file

@ -1 +1 @@
10 CLEAR INPUT
10 IF PEEK (49152) > 127 THEN C = PEEK (49168): GOTO 10

View file

@ -1 +1 @@
10 IF INKEY$ <> "" THEN GO TO 10
10 CLEAR INPUT

View file

@ -0,0 +1 @@
10 IF INKEY$ <> "" THEN GO TO 10

View file

@ -0,0 +1,16 @@
package main
import (
"log"
gc "code.google.com/p/goncurses"
)
func main() {
_, err := gc.Init()
if err != nil {
log.Fatal("init:", err)
}
defer gc.End()
gc.FlushInput()
}