lqs/client.go
2023-12-12 11:23:49 +02:00

21 lines
349 B
Go

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()
}
}