Use the alt screen for internal/pager instead of clearing the screen
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
177960431c
commit
cf932e6691
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue