From 6a590932ddc1f4c3eb2dadf33241542403b326eb Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Mon, 24 Oct 2016 19:33:15 +0200 Subject: [PATCH] _examples/widgets.go: Improve help message --- _examples/widgets.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_examples/widgets.go b/_examples/widgets.go index 2696d4f..c6c9ce1 100644 --- a/_examples/widgets.go +++ b/_examples/widgets.go @@ -122,9 +122,9 @@ func main() { g.SelFgColor = gocui.ColorRed help := NewHelpWidget("help", 1, 1, helpText) - status := NewStatusbarWidget("status", 1, 6, 50) - butdown := NewButtonWidget("butdown", 52, 6, "DOWN", statusDown(status)) - butup := NewButtonWidget("butup", 58, 6, "UP", statusUp(status)) + status := NewStatusbarWidget("status", 1, 7, 50) + butdown := NewButtonWidget("butdown", 52, 7, "DOWN", statusDown(status)) + butup := NewButtonWidget("butup", 58, 7, "UP", statusUp(status)) g.SetManager(help, status, butdown, butup) if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil { @@ -174,4 +174,5 @@ func statusSet(sw *StatusbarWidget, inc float32) error { const helpText = `KEYBINDINGS Tab: Move between buttons +Enter: Push button ^C: Exit`