MCPcopy
hub / github.com/pterm/pterm / WithFullscreen

Method WithFullscreen

area_printer.go:40–43  ·  view source on GitHub ↗

WithFullscreen sets the AreaPrinter height the same height as the terminal, making it fullscreen.

(b ...bool)

Source from the content-addressed store, hash-verified

38
39// WithFullscreen sets the AreaPrinter height the same height as the terminal, making it fullscreen.
40func (p AreaPrinter) WithFullscreen(b ...bool) *AreaPrinter {
41 p.Fullscreen = internal.WithBoolean(b)
42 return &p
43}
44
45// WithCenter centers the AreaPrinter content to the terminal.
46func (p AreaPrinter) WithCenter(b ...bool) *AreaPrinter {

Callers 5

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

WithBooleanFunction · 0.92

Tested by 2