diff --git a/screen.go b/screen.go index 1f38569..be2e617 100644 --- a/screen.go +++ b/screen.go @@ -41,9 +41,6 @@ func NewScreen(root View) (*Screen, error) { s.KeyPressed = CloseOnCtrlC(s) - go s.eventloop() - go s.drawloop() - return s, nil } @@ -57,6 +54,10 @@ func (s *Screen) Start() error { defer close(s.redrawCh) s.scr.EnableMouse() + + go s.eventloop() + go s.drawloop() + s.started = true return <-s.stopCh }