MCPcopy
hub / github.com/pterm/pterm / WithRemoveWhenDone

Method WithRemoveWhenDone

area_printer.go:34–37  ·  view source on GitHub ↗

WithRemoveWhenDone removes the AreaPrinter content after it is stopped.

(b ...bool)

Source from the content-addressed store, hash-verified

32
33// WithRemoveWhenDone removes the AreaPrinter content after it is stopped.
34func (p AreaPrinter) WithRemoveWhenDone(b ...bool) *AreaPrinter {
35 p.RemoveWhenDone = internal.WithBoolean(b)
36 return &p
37}
38
39// WithFullscreen sets the AreaPrinter height the same height as the terminal, making it fullscreen.
40func (p AreaPrinter) WithFullscreen(b ...bool) *AreaPrinter {

Calls 1

WithBooleanFunction · 0.92