summaryrefslogtreecommitdiff
path: root/cmds/buttonplugin/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-08 14:31:00 -0500
committerJeff Carr <[email protected]>2023-04-08 14:31:00 -0500
commit0e0787c0620c0dca59378d1e3b355c60a1a82de1 (patch)
treec376e21df8cb3a1e8d9cb6de0edc0aa8635263d9 /cmds/buttonplugin/main.go
parent65148155a12151fdeb2ffebf03da2c3b836780a8 (diff)
gocui: smarter debugging
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cmds/buttonplugin/main.go')
-rw-r--r--cmds/buttonplugin/main.go23
1 files changed, 7 insertions, 16 deletions
diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go
index f33065a..8b94da2 100644
--- a/cmds/buttonplugin/main.go
+++ b/cmds/buttonplugin/main.go
@@ -4,7 +4,7 @@ package main
import (
"fmt"
"log"
- "time"
+// "time"
"strconv"
"git.wit.org/wit/gui"
)
@@ -16,24 +16,15 @@ var myGui *gui.Node
var buttonCounter int = 5
func main() {
- // time.Sleep(5 * time.Second)
- // var w *gui.Node
-
- // this doesn't seem to work
- // captureSTDOUT()
-
- // gui.LoadToolkit("default")
- // panic("WTF gocui not happening")
- // gui.LoadToolkit("gocui")
-// gui.Init()
-
- // buttonWindow()
- gui.SetDebug(true)
+ // This will turn on all debugging
+ // gui.SetDebug(true)
myGui = gui.Start()
- time.Sleep(1 * time.Second)
+ // time.Sleep(1 * time.Second)
buttonWindow()
log.Println("Main() END")
- time.Sleep(1 * time.Second)
+ // time.Sleep(1 * time.Second)
+
+ // This is just a optional goroutine to watch that things are alive
gui.Watchdog()
gui.StandardExit()
}