summaryrefslogtreecommitdiff
path: root/toolkit/gocui/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-08 00:28:33 -0500
committerJeff Carr <[email protected]>2023-04-08 00:28:33 -0500
commit55b5aed5c4837c8de131925966b328f43bb03b61 (patch)
treee66bd66d675d352c4efa3ce0fcbfa818527e9c8d /toolkit/gocui/structs.go
parent56b4aa8014baa8205459545dc27a173cbbcbee16 (diff)
both andlabs & gocui plugins have working channels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/structs.go')
-rw-r--r--toolkit/gocui/structs.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolkit/gocui/structs.go b/toolkit/gocui/structs.go
index 8170416..e8e8172 100644
--- a/toolkit/gocui/structs.go
+++ b/toolkit/gocui/structs.go
@@ -23,7 +23,13 @@ type config struct {
rootNode *cuiWidget // the base of the binary tree. it should have id == 0
ctrlDown *cuiWidget // shown if you click the mouse when the ctrl key is pressed
+ // this is the channel we send user events like
+ // mouse clicks or keyboard events back to the program
callback chan toolkit.Action
+
+ // this is the channel we get requests to make widgets
+ pluginChan chan toolkit.Action
+
helpLabel *gocui.View
defaultBehavior bool