Fix Hello World in readme

This commit is contained in:
Caleb Bassi 2018-11-29 10:22:51 -08:00
parent 4782da6ed6
commit 9efc9b7958

View File

@ -32,13 +32,14 @@ func main() {
}
defer ui.Close()
p := ui.NewParagraph("Hello World")
p := ui.NewParagraph("Hello World!")
p.Width = 25
p.Height = 5
ui.Render(p)
for {
e := <-ui.PollEvent()
switch e.ID {
case "q", "<C-c>":
if e.Type == ui.KeyboardEvent {
return
}
}