package main import ( "log" "github.com/gdamore/tcell/v2" ) func run() { var screen tcell.Screen var err error if screen, err = tcell.NewScreen(); err != nil { log.Fatalf("creating screen: %s", err) } else if err = screen.Init(); err != nil { log.Fatalf("initializing screen: %s", err) } if gOpts.mouse { screen.EnableMouse() } }