Skip to content
Myr

Fix list-default to use tea.WithAltScreen option

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kyosuke Fujimoto · committed by Christian Rocha · parent 14478e2 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:examples/list-default/main.go+1 added-2 removed
75 unmodified lines
7677 m := model{list: list.NewModel(items, list.NewDefaultDelegate(), 0, 0)}78 m.list.Title = "My Fave Things"7980 p := tea.NewProgram(m)81 p.EnterAltScreen()80 p := tea.NewProgram(m, tea.WithAltScreen())8182 if err := p.Start(); err != nil {83 fmt.Println("Error running program:", err)84 os.Exit(1)
2 unmodified lines