diff options
Diffstat (limited to 'stdin.go')
| -rw-r--r-- | stdin.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: |
