24 lines
382 B
Go
24 lines
382 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
|
|
"github.com/gdamore/tcell/v2"
|
|
)
|
|
|
|
func run() {
|
|
fmt.Println("Prade...")
|
|
|
|
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()
|
|
}
|
|
}
|