MCPcopy
hub / github.com/pterm/pterm / Start

Method Start

area_printer.go:92–101  ·  view source on GitHub ↗

Start the AreaPrinter.

(text ...any)

Source from the content-addressed store, hash-verified

90
91// Start the AreaPrinter.
92func (p *AreaPrinter) Start(text ...any) (*AreaPrinter, error) {
93 p.isActive = true
94 str := Sprint(text...)
95 newArea := cursor.NewArea()
96 p.area = &newArea
97
98 p.Update(str)
99
100 return p, nil
101}
102
103// Stop terminates the AreaPrinter immediately.
104// The AreaPrinter will not resolve into anything.

Calls 2

UpdateMethod · 0.95
SprintFunction · 0.85