diff options
| author | Jeff Carr <[email protected]> | 2023-04-24 06:22:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-24 06:22:14 -0500 |
| commit | d38b05d2d5a2c2ff0c66b541f7d80cbd1c250d76 (patch) | |
| tree | 5c0540c8efac7cf59fefc2624bf8de5654a7393f /toolkit/gocui/main.go | |
| parent | fbe943540106f1c12971932fd92f9395bbe214b3 (diff) | |
gocui: always show STDOUT
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/main.go')
| -rw-r--r-- | toolkit/gocui/main.go | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/toolkit/gocui/main.go b/toolkit/gocui/main.go index 7f9958f..c3418a6 100644 --- a/toolkit/gocui/main.go +++ b/toolkit/gocui/main.go @@ -13,12 +13,9 @@ import ( // to this toolkit from the wit/gui golang package func init() { log(logInfo, "Init() of awesome-gocui") - me.defaultWidth = 10 - me.defaultHeight = 2 // this means by default one line of text in a button + Set(&me, "default") me.defaultBehavior = true - me.horizontalPadding = 20 - me.horizontalPadding = 20 me.groupPadding = 4 me.buttonPadding = 3 @@ -29,14 +26,21 @@ func init() { me.padW = 3 me.padH = 3 + // todo, remove all of these + me.defaultWidth = 10 + me.defaultHeight = 2 // this means by default one line of text in a button + + me.horizontalPadding = 20 + me.horizontalPadding = 20 + // todo, remove all of these + me.pluginChan = make(chan toolkit.Action) log(logNow, "Init() start pluginChan") go catchActionChannel() - sleep(.1) + sleep(.1) // probably not needed, but in here for now under development go main() - // probably not needed, but in here for now under development - sleep(.1) + sleep(.1) // probably not needed, but in here for now under development } // this sets the channel to send user events back from the plugin |
