diff --git a/tscreen.go b/tscreen.go index a64c29c..16f2924 100644 --- a/tscreen.go +++ b/tscreen.go @@ -1351,9 +1351,9 @@ func (t *tScreen) mainLoop() { } func (t *tScreen) inputLoop() { + chunk := make([]byte, 128) for { - chunk := make([]byte, 128) n, e := t.in.Read(chunk) switch e { case io.EOF: