diff --git a/init.go b/init.go index f373fa9..00fa42f 100644 --- a/init.go +++ b/init.go @@ -26,6 +26,27 @@ var BUILDTIME string var PLUGIN string = "gocui" +func toolkitInit() { + log.Info("gocui toolkitInit()") + if me.baseGui == nil { + log.Info("gocui baseGui is still nil") + } else { + me.baseGui.Update(testRefresh) + } + /* + if me.stdout.outputOnTop { + me.stdout.outputOnTop = false + setThingsOnTop() + } else { + me.stdout.outputOnTop = true + setThingsOnTop() + } + relocateStdoutOffscreen() + log.Info("refresh triggered") + */ + // me.newWindowTrigger <- me.treeRoot.TK.(*guiWidget) +} + func toolkitClose() { me.baseGui.Close() } diff --git a/treeInit.go b/treeInit.go index 5c2284e..7fc1c73 100644 --- a/treeInit.go +++ b/treeInit.go @@ -68,6 +68,7 @@ func initTree() *tree.TreeInfo { t.Hide = hideWidget t.SetChecked = setChecked + t.ToolkitInit = toolkitInit t.ToolkitClose = toolkitClose t.ShowTable = showTable