diff options
| author | Jeff Carr <[email protected]> | 2024-11-06 16:02:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-06 16:02:11 -0600 |
| commit | 1eb637cbf5101c13b5b271a32670e3aa56b12989 (patch) | |
| tree | 472e62d92b6b0c7aa0205c7892151e2949369195 | |
| parent | 32c023ac384eaf19d2f3a72e736632d465382d3e (diff) | |
attempt to keep the ncurses gui
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | main.go | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -11,6 +11,9 @@ no-gui: build ./go-deb --no-gui --repo go.wit.com/apps/autotypist 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 install: @@ -2,6 +2,7 @@ package main import ( + "embed" "os" "path/filepath" @@ -20,6 +21,9 @@ var cBox *controlBox // this is a basic window. the user can open and close it var basicWindow *gadgets.BasicWindow +//go:embed resources/* +var resources embed.FS + func main() { if argv.Repo == "" { log.Info("You need to tell me what repo you want to work on") @@ -28,6 +32,7 @@ func main() { os.Exit(0) } myGui = gui.New() + myGui.InitEmbed(resources) myGui.Default() basicWindow = makebasicWindow() |
