Use the alt screen for internal/pager instead of clearing the screen
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-10-06 14:51:48 -07:00
parent 177960431c
commit cf932e6691
1 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ func (p *Pager) Run() error {
prog := tea.NewProgram(
p.model,
tea.WithMouseCellMotion(),
tea.WithAltScreen(),
)
_, err := prog.Run()
@ -74,7 +75,7 @@ type pagerModel struct {
}
func (pm pagerModel) Init() tea.Cmd {
return tea.ClearScreen
return nil
}
func (pm pagerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {