jroimartin / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
9.92k stars 608 forks source link

stdin example #125

Closed dbubel-rm closed 7 years ago

dbubel-rm commented 7 years ago

Doing a go build on stdin.go in the examples folder and then a ./stdin causes the program to hang on MAC El Capitan 10.11.6.

jroimartin commented 7 years ago

It hangs because it's waiting for stdin data. Try something like this:

$ cat /bin/ls | go run _examples/stdin.go
dbubel-rm commented 7 years ago

That worked, I figured it was waiting for keyboard stdin.