diff options
| author | Jeff Carr <[email protected]> | 2023-04-28 07:29:46 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-28 07:29:46 -0500 |
| commit | 3516434fbf56ada3724d4c07bf31bb71d0fe5469 (patch) | |
| tree | 450fe7cc7c12804ed81073add6d61c85ac8eed34 /toolkit/nocui/stdin.go | |
| parent | a1deb9845593e211a1ce6fe4a7f88bbe5acd9981 (diff) | |
allow passing of embed plugin files
Signed-off-by: Jeff Carr <[email protected]>
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) |
