Skip to content
Myr

Deprecate Program.EnterAltScreen Program.ExitAltScreen methods

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

The EnterAltScreen/ExitAltScreen commands should be used instead.

authored by Christian Rocha · committed by Christian Rocha · parent 5c150eb · Browse files · 1 file+9 added−4 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+9 added−4 removed

  • other:+9 added−4 removed

1 file+9 added−4 removed

modified:tea.go+9 added-4 removed
166 unmodified lines
167// quitMsg in an internal message signals that the program should quit. You can168// send a quitMsg with Quit.169type quitMsg struct{}170171// EnterAltScreen is a special command that tells the Bubble Tea program to enter172// alternate screen buffer.171// EnterAltScreen is a special command that tells the Bubble Tea program to172// enter alternate screen buffer.173func EnterAltScreen() Msg {174 return enterAltScreenMsg{}175}176177// enterAltScreenMsg in an internal message signals that the program should enter178// alternate screen buffer. You can send a enterAltScreenMsg with EnterAltScreen.177// enterAltScreenMsg in an internal message signals that the program should178// enter alternate screen buffer. You can send a enterAltScreenMsg with179// EnterAltScreen.180type enterAltScreenMsg struct{}181182// ExitAltScreen is a special command that tells the Bubble Tea program to exit183// alternate screen buffer.
288 unmodified lines
472}473474// EnterAltScreen enters the alternate screen buffer, which consumes the entire475// terminal window. ExitAltScreen will return the terminal to its former state.476//477// Deprecated. Use the EnterAltScreen() command instead.478func (p *Program) EnterAltScreen() {479 p.mtx.Lock()480 defer p.mtx.Unlock()481
10 unmodified lines
492 }493}494495// ExitAltScreen exits the alternate screen buffer.496//497// Deprecated. Use the ExitAltScreen() command instead.498func (p *Program) ExitAltScreen() {499 p.mtx.Lock()500 defer p.mtx.Unlock()501
52 unmodified lines