Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -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.''
|
||||
|
|
|
|||
|
|
@ -1,2 +1,6 @@
|
|||
---
|
||||
category:
|
||||
- Hardware
|
||||
- Terminal control
|
||||
- Simple
|
||||
note: Keyboard input
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
10 CLEAR INPUT
|
||||
10 IF PEEK (49152) > 127 THEN C = PEEK (49168): GOTO 10
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
10 IF INKEY$ <> "" THEN GO TO 10
|
||||
10 CLEAR INPUT
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
10 IF INKEY$ <> "" THEN GO TO 10
|
||||
|
|
@ -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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue