aboutsummaryrefslogtreecommitdiff
path: root/sd.go
diff options
context:
space:
mode:
Diffstat (limited to 'sd.go')
-rw-r--r--sd.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd.go b/sd.go
index ac1d46d..d1a6756 100644
--- a/sd.go
+++ b/sd.go
@@ -97,10 +97,13 @@ func main() {
var key, val string
db.QueryRow("SELECT key, val FROM cards WHERE idx=?", i).Scan(&key, &val)
fmt.Println(key)
+
+ // Wait for confirmation
+ var b []byte = make([]byte, 1)
+ os.Stdin.Read(b)
fmt.Println(val)
// Read user input
- var b []byte = make([]byte, 1)
os.Stdin.Read(b)
if b[0] == byte('y') {
w >>= 1