aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go')
-rw-r--r--Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go b/Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go
index 78d954b36..203544bbf 100644
--- a/Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go
+++ b/Godeps/_workspace/src/github.com/nsf/termbox-go/api_windows.go
@@ -80,6 +80,10 @@ func Close() {
// stop event producer
cancel_comm <- true
set_event(interrupt)
+ select {
+ case <-input_comm:
+ default:
+ }
<-cancel_done_comm
set_console_cursor_info(out, &orig_cursor_info)