mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Wrap termenv altscreen functions to make things simpler for the end user
This commit is contained in:
12
tea.go
12
tea.go
@@ -269,3 +269,15 @@ func (p *Program) processSubs(msgs chan Msg, activeSubs subManager) subManager {
|
||||
|
||||
return activeSubs
|
||||
}
|
||||
|
||||
// AltScreen exits the altscreen. Just is just a wrapper around the termenv
|
||||
// function
|
||||
func AltScreen() {
|
||||
termenv.AltScreen()
|
||||
}
|
||||
|
||||
// ExitAltScreen exits the altscreen. Just is just a wrapper around the termenv
|
||||
// function
|
||||
func ExitAltScreen() {
|
||||
termenv.ExitAltScreen()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user