forked from Mirrors/bubbletea
Fix fullscreen example
This commit is contained in:
parent
ed03a59e66
commit
fdd1007b27
|
@ -15,9 +15,12 @@ type model int
|
||||||
type tickMsg time.Time
|
type tickMsg time.Time
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
tea.AltScreen()
|
p := tea.NewProgram(initialize, update, view)
|
||||||
defer tea.ExitAltScreen()
|
|
||||||
err := tea.NewProgram(initialize, update, view).Start()
|
p.EnterAltScreen()
|
||||||
|
err := p.Start()
|
||||||
|
p.ExitAltScreen()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue