diff options
Diffstat (limited to 'toolkit/nocui/stdin.go')
| -rw-r--r-- | toolkit/nocui/stdin.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/nocui/stdin.go b/toolkit/nocui/stdin.go index ed71206..86ec664 100644 --- a/toolkit/nocui/stdin.go +++ b/toolkit/nocui/stdin.go @@ -22,12 +22,16 @@ func simpleStdin() { case "b": log(true, "show buttons") rootNode.showButtons() + case "d": + var a toolkit.Action + a.ActionType = toolkit.EnableDebug + callback <- a case "": fmt.Println("") fmt.Println("Enter:") fmt.Println("'l': list all widgets") fmt.Println("'b': for buttons") - fmt.Println("") + fmt.Println("'d': enable debugging") default: i, _ := strconv.Atoi(s) log(true, "got input:", i) |
