summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-27 09:04:43 -0600
committerJeff Carr <[email protected]>2024-01-27 09:04:43 -0600
commita72024107be0c01375508d7ac732fc29a4bad8e7 (patch)
tree47bbc001af74c3ff89bd9919306fb881b51daf8d /main.go
parent0bdabc5747163859ddf88e0ea0a4b1712a658bb9 (diff)
nocui works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.go b/main.go
index c30af42..fa28c37 100644
--- a/main.go
+++ b/main.go
@@ -23,8 +23,10 @@ var section1 *choices
var section2 *choices
func main() {
+ log.SetAll(true)
+ log.ShowFlags()
myGui = gui.New()
- myGui.LoadToolkit("andlabs")
+ // myGui.LoadToolkit("andlabs")
// myGui.LoadToolkit("nocui")
myGui.Default()
@@ -32,6 +34,14 @@ func main() {
helloworld()
basicWindow = makebasicWindow()
+ // run the debugger if triggered from the commandline
+ if debugger.ArgDebug() {
+ go func() {
+ log.Sleep(2)
+ debugger.DebugWindow()
+ }()
+ }
+
// go will sit here until the window exits
gui.Watchdog()
}