summaryrefslogtreecommitdiff
path: root/toolkit/nocui/stdin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 06:57:39 -0600
committerJeff Carr <[email protected]>2023-12-16 06:57:39 -0600
commit87ab9a958d9eb9f4db35d5c9f9ce923df3132dad (patch)
treefd3ee29d828e9e69175a6ca04fec6ae0fe60fcc0 /toolkit/nocui/stdin.go
parentdcce32583387be7fc4f6cd8c8dea62fd7dc42ecf (diff)
gocui: fixes to labels + line entriesv0.8.8.1v0.8.8
correct line hight dump non-working size rectangle code somehow works better better dropdown menu debugging minor fixes to common.go more common code Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/nocui/stdin.go')
-rw-r--r--toolkit/nocui/stdin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/nocui/stdin.go b/toolkit/nocui/stdin.go
index 86ec664..0738d00 100644
--- a/toolkit/nocui/stdin.go
+++ b/toolkit/nocui/stdin.go
@@ -18,10 +18,10 @@ func simpleStdin() {
switch s {
case "l":
log(true, "list widgets")
- rootNode.listWidgets()
+ me.rootNode.listWidgets()
case "b":
log(true, "show buttons")
- rootNode.showButtons()
+ me.rootNode.showButtons()
case "d":
var a toolkit.Action
a.ActionType = toolkit.EnableDebug
@@ -35,7 +35,7 @@ func simpleStdin() {
default:
i, _ := strconv.Atoi(s)
log(true, "got input:", i)
- n := rootNode.findWidgetId(i)
+ n := me.rootNode.findWidgetId(i)
if (n != nil) {
n.dumpWidget("found node")
n.doUserEvent()