MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / ClearScreen

Function ClearScreen

screen.go:18–20  ·  view source on GitHub ↗

ClearScreen is a special command that tells the program to clear the screen before the next update. This can be used to move the cursor to the top left of the screen and clear visual clutter when the alt screen is not in use. Note that it should never be necessary to call ClearScreen() for regular

()

Source from the content-addressed store, hash-verified

16// Note that it should never be necessary to call ClearScreen() for regular
17// redraws.
18func ClearScreen() Msg {
19 return clearScreenMsg{}
20}
21
22// clearScreenMsg is an internal message that signals to clear the screen.
23// You can send a clearScreenMsg with ClearScreen.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected