lqs/client.go

22 lines
349 B
Go
Raw Normal View History

2023-12-11 17:20:16 +00:00
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()
}
}