MCPcopy
hub / github.com/pterm/pterm / AreaPrinter

Struct AreaPrinter

area_printer.go:17–26  ·  view source on GitHub ↗

AreaPrinter prints an area which can be updated easily. use this printer for live output like charts, algorithm visualizations, simulations and even games.

Source from the content-addressed store, hash-verified

15// AreaPrinter prints an area which can be updated easily.
16// use this printer for live output like charts, algorithm visualizations, simulations and even games.
17type AreaPrinter struct {
18 RemoveWhenDone bool
19 Fullscreen bool
20 Center bool
21
22 content string
23 isActive bool
24
25 area *cursor.Area
26}
27
28// GetContent returns the current area content.
29func (p *AreaPrinter) GetContent() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected