diff options
| author | Jeff Carr <[email protected]> | 2023-04-11 15:25:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-11 15:25:03 -0500 |
| commit | 874e0beffad469f713d0435524e0a2f12dcfd978 (patch) | |
| tree | d3e97b958aaa73b8f1c754ee30a856b72ec9f5cf /toolkit/gocui/main.go | |
| parent | b24cc5898604191df7bfc2cacd7bc5043fa14a42 (diff) | |
andlabs is broken
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/main.go')
| -rw-r--r-- | toolkit/gocui/main.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/toolkit/gocui/main.go b/toolkit/gocui/main.go index f9611c1..de35700 100644 --- a/toolkit/gocui/main.go +++ b/toolkit/gocui/main.go @@ -33,6 +33,10 @@ func Init() { log(logNow, "Init() start pluginChan") go catchActionChannel() + sleep(.1) + go main() + // probably not needed, but in here for now under development + sleep(.1) } // this sets the channel to send user events back from the plugin @@ -50,14 +54,10 @@ func catchActionChannel() { log(logInfo, "catchActionChannel() infinite for() loop restarted select on channel") select { case a := <-me.pluginChan: - // this plugin can be loaded, but it doesn't actually do anything until - // the calling program sends an action to it. Then, it actually will initialize - // the tty and take over your console if (me.baseGui == nil) { - log(logError,"main() was not run yet") - go main() - // probably not needed, but in here for now under development - sleep(1) + // something went wrong initializing the gocui + log(logError,"ERROR: console did not initialize") + continue } log(logNow, "catchActionChannel()", a.WidgetId, a.ActionType, a.WidgetType, a.Name) action(&a) |
