diff options
Diffstat (limited to 'toolkit/gocui/main.go')
| -rw-r--r-- | toolkit/gocui/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toolkit/gocui/main.go b/toolkit/gocui/main.go index ab50237..6821a82 100644 --- a/toolkit/gocui/main.go +++ b/toolkit/gocui/main.go @@ -6,6 +6,7 @@ package main import ( "os" + "git.wit.org/wit/gui/toolkit" ) func Init() { @@ -27,6 +28,11 @@ func Init() { me.padH = 3 } +// this sets the channel to send user events back from the plugin +func Callback(guiCallback chan toolkit.Action) { + me.callback = guiCallback +} + func Exit() { // TODO: exit correctly me.baseGui.Close() |
