MCPcopy
hub / github.com/pterm/pterm / Clear

Method Clear

area_printer.go:137–139  ·  view source on GitHub ↗

Clear is a Wrapper function that clears the content of the Area moves the cursor to the bottom of the terminal, clears n lines upwards from the current position and moves the cursor again.

()

Source from the content-addressed store, hash-verified

135// moves the cursor to the bottom of the terminal, clears n lines upwards from
136// the current position and moves the cursor again.
137func (p *AreaPrinter) Clear() {
138 p.area.Clear()
139}

Callers 2

StopMethod · 0.95
TestAreaPrinter_ClearFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestAreaPrinter_ClearFunction · 0.76