summaryrefslogtreecommitdiff
path: root/stdin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 11:34:00 -0600
committerJeff Carr <[email protected]>2024-01-30 11:34:00 -0600
commit36b1b1bfab2d11650e7b28070b04b386f2cfc3cf (patch)
tree22b02fc0a2ff4347742028230d2736f32a2471e0 /stdin.go
parentd6b940e519ef00fdc1d60545db12b432e9c255e7 (diff)
can't properly unload this plugin
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'stdin.go')
-rw-r--r--stdin.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/stdin.go b/stdin.go
index a8897f5..416849f 100644
--- a/stdin.go
+++ b/stdin.go
@@ -20,6 +20,8 @@ func showOptions() {
fmt.Println("'g': load gocui plugin")
fmt.Println("'a': load andlabs plugin")
fmt.Println("'d': enable debugging")
+ fmt.Println("'p': panic plugin")
+ fmt.Println("'q': close plugin")
fmt.Println("")
fmt.Println("Enter the number of the widget to click:")
fmt.Print("Option: ")
@@ -53,6 +55,12 @@ func simpleStdin() {
me.myTree.SendToolkitLoad("andlabs")
case "d":
me.myTree.SendEnableDebugger()
+ case "p":
+ debug.PrintStack()
+ me.myTree.SendToolkitPanic()
+ return
+ case "q":
+ return
case "":
showOptions()
default: