attempt to keep the ncurses gui
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
32c023ac38
commit
1eb637cbf5
3
Makefile
3
Makefile
|
@ -11,6 +11,9 @@ no-gui: build
|
||||||
./go-deb --no-gui --repo go.wit.com/apps/autotypist
|
./go-deb --no-gui --repo go.wit.com/apps/autotypist
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
-rm resources/*.so
|
||||||
|
# embed the ncurses gui plugin
|
||||||
|
-cp -a ~/go/src/go.wit.com/toolkits/gocui.so resources/
|
||||||
GO111MODULE="off" go build -v
|
GO111MODULE="off" go build -v
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
5
main.go
5
main.go
|
@ -2,6 +2,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"embed"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
@ -20,6 +21,9 @@ var cBox *controlBox
|
||||||
// this is a basic window. the user can open and close it
|
// this is a basic window. the user can open and close it
|
||||||
var basicWindow *gadgets.BasicWindow
|
var basicWindow *gadgets.BasicWindow
|
||||||
|
|
||||||
|
//go:embed resources/*
|
||||||
|
var resources embed.FS
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if argv.Repo == "" {
|
if argv.Repo == "" {
|
||||||
log.Info("You need to tell me what repo you want to work on")
|
log.Info("You need to tell me what repo you want to work on")
|
||||||
|
@ -28,6 +32,7 @@ func main() {
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
myGui = gui.New()
|
myGui = gui.New()
|
||||||
|
myGui.InitEmbed(resources)
|
||||||
myGui.Default()
|
myGui.Default()
|
||||||
|
|
||||||
basicWindow = makebasicWindow()
|
basicWindow = makebasicWindow()
|
||||||
|
|
Loading…
Reference in New Issue