MCPcopy
hub / github.com/pterm/pterm / GenericStop

Method GenericStop

area_printer.go:128–132  ·  view source on GitHub ↗

GenericStop runs Stop, but returns a LivePrinter. This is used for the interface LivePrinter. You most likely want to use Stop instead of this in your program.

()

Source from the content-addressed store, hash-verified

126// This is used for the interface LivePrinter.
127// You most likely want to use Stop instead of this in your program.
128func (p *AreaPrinter) GenericStop() (*LivePrinter, error) {
129 _ = p.Stop()
130 lp := LivePrinter(p)
131 return &lp, nil
132}
133
134// Clear is a Wrapper function that clears the content of the Area
135// moves the cursor to the bottom of the terminal, clears n lines upwards from

Callers

nothing calls this directly

Calls 2

StopMethod · 0.95
LivePrinterInterface · 0.85

Tested by

no test coverage detected