Start the AreaPrinter.
(text ...any)
| 90 | |
| 91 | // Start the AreaPrinter. |
| 92 | func (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. |