can't properly unload this plugin
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d6b940e519
commit
36b1b1bfab
|
@ -9,7 +9,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
"go.wit.com/widget"
|
"go.wit.com/widget"
|
||||||
// "go.wit.com/toolkits/tree"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func doAction(a widget.Action) {
|
func doAction(a widget.Action) {
|
||||||
|
|
8
stdin.go
8
stdin.go
|
@ -20,6 +20,8 @@ func showOptions() {
|
||||||
fmt.Println("'g': load gocui plugin")
|
fmt.Println("'g': load gocui plugin")
|
||||||
fmt.Println("'a': load andlabs plugin")
|
fmt.Println("'a': load andlabs plugin")
|
||||||
fmt.Println("'d': enable debugging")
|
fmt.Println("'d': enable debugging")
|
||||||
|
fmt.Println("'p': panic plugin")
|
||||||
|
fmt.Println("'q': close plugin")
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
fmt.Println("Enter the number of the widget to click:")
|
fmt.Println("Enter the number of the widget to click:")
|
||||||
fmt.Print("Option: ")
|
fmt.Print("Option: ")
|
||||||
|
@ -53,6 +55,12 @@ func simpleStdin() {
|
||||||
me.myTree.SendToolkitLoad("andlabs")
|
me.myTree.SendToolkitLoad("andlabs")
|
||||||
case "d":
|
case "d":
|
||||||
me.myTree.SendEnableDebugger()
|
me.myTree.SendEnableDebugger()
|
||||||
|
case "p":
|
||||||
|
debug.PrintStack()
|
||||||
|
me.myTree.SendToolkitPanic()
|
||||||
|
return
|
||||||
|
case "q":
|
||||||
|
return
|
||||||
case "":
|
case "":
|
||||||
showOptions()
|
showOptions()
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue