diff --git a/examples/list-default/main.go b/examples/list-default/main.go index 9ec65bb..2dcaf70 100644 --- a/examples/list-default/main.go +++ b/examples/list-default/main.go @@ -77,8 +77,7 @@ func main() { m := model{list: list.NewModel(items, list.NewDefaultDelegate(), 0, 0)} m.list.Title = "My Fave Things" - p := tea.NewProgram(m) - p.EnterAltScreen() + p := tea.NewProgram(m, tea.WithAltScreen()) if err := p.Start(); err != nil { fmt.Println("Error running program:", err)