mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Fix list-default to use tea.WithAltScreen option
This commit is contained in:
committed by
Christian Rocha
parent
14478e2a3c
commit
3a1b9fbe9f
@@ -77,8 +77,7 @@ func main() {
|
|||||||
m := model{list: list.NewModel(items, list.NewDefaultDelegate(), 0, 0)}
|
m := model{list: list.NewModel(items, list.NewDefaultDelegate(), 0, 0)}
|
||||||
m.list.Title = "My Fave Things"
|
m.list.Title = "My Fave Things"
|
||||||
|
|
||||||
p := tea.NewProgram(m)
|
p := tea.NewProgram(m, tea.WithAltScreen())
|
||||||
p.EnterAltScreen()
|
|
||||||
|
|
||||||
if err := p.Start(); err != nil {
|
if err := p.Start(); err != nil {
|
||||||
fmt.Println("Error running program:", err)
|
fmt.Println("Error running program:", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user