From 3a1b9fbe9fa454a5d24f72da445285e4cb8ab2ad Mon Sep 17 00:00:00 2001 From: Kyosuke Fujimoto Date: Sat, 8 Jan 2022 14:10:31 +0900 Subject: [PATCH] Fix list-default to use tea.WithAltScreen option --- examples/list-default/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)