MCPcopy
hub / github.com/pterm/pterm / DisableStyling

Function DisableStyling

pterm.go:61–64  ·  view source on GitHub ↗

DisableStyling sets PTerm to RawOutput mode and disables all of PTerms styling. You can use this to print to text files etc. This also calls DisableColor.

()

Source from the content-addressed store, hash-verified

59// You can use this to print to text files etc.
60// This also calls DisableColor.
61func DisableStyling() {
62 RawOutput = true
63 DisableColor()
64}
65
66// RecalculateTerminalSize updates already initialized terminal dimensions. Has to be called after a terminal resize to guarantee proper rendering. Applies only to new instances.
67func RecalculateTerminalSize() {

Callers 15

testPrintContainsFunction · 0.92
testPrintfContainsFunction · 0.92
testPrintflnContainsFunction · 0.92
testPrintlnContainsFunction · 0.92
testSprintContainsFunction · 0.92
testSprintfContainsFunction · 0.92
testSprintflnContainsFunction · 0.92
testSprintlnContainsFunction · 0.92
testDoesOutputFunction · 0.92
testEmptyFunction · 0.92

Calls 1

DisableColorFunction · 0.85

Tested by 15

testPrintContainsFunction · 0.74
testPrintfContainsFunction · 0.74
testPrintflnContainsFunction · 0.74
testPrintlnContainsFunction · 0.74
testSprintContainsFunction · 0.74
testSprintfContainsFunction · 0.74
testSprintflnContainsFunction · 0.74
testSprintlnContainsFunction · 0.74
testDoesOutputFunction · 0.74
testEmptyFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…