Fix Hello World in readme

This commit is contained in:
Caleb Bassi 2018-11-29 10:22:51 -08:00
parent 4782da6ed6
commit 9efc9b7958
1 changed files with 4 additions and 3 deletions

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
}
}