diff --git a/README.md b/README.md index 68770ad..62fd697 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Minimalist Go package aimed at creating Console User Interfaces. * Mouse support. * Colored text. * Customizable edition mode. +* Easy to build reusable widgets, complex layouts... ## Installation diff --git a/doc.go b/doc.go index 53c1e84..28b895c 100644 --- a/doc.go +++ b/doc.go @@ -69,9 +69,10 @@ Mouse events are handled like any other keybinding: } IMPORTANT: Views can only be created, destroyed or updated in three ways: from -layout functions, from keybinding callbacks or via *Gui.Execute(). The reason -for this is that it allows gocui to be conccurent-safe. So, if you want to -update your GUI from a goroutine, you must use *Gui.Execute(). For example: +the Layout function within managers, from keybinding callbacks or via +*Gui.Execute(). The reason for this is that it allows gocui to be +conccurent-safe. So, if you want to update your GUI from a goroutine, you must +use *Gui.Execute(). For example: g.Execute(func(g *gocui.Gui) error { v, err := g.View("viewname")