MCPcopy Create free account
hub / github.com/google/pprof / IsTerminal

Method IsTerminal

driver/driver.go:224–224  ·  view source on GitHub ↗

IsTerminal returns whether the UI is known to be tied to an interactive terminal (as opposed to being redirected to a file).

()

Source from the content-addressed store, hash-verified

222 // IsTerminal returns whether the UI is known to be tied to an
223 // interactive terminal (as opposed to being redirected to a file).
224 IsTerminal() bool
225
226 // WantBrowser indicates whether browser should be opened with the -http option.
227 WantBrowser() bool

Callers 3

PrintErrMethod · 0.65
IsTerminalMethod · 0.65
awayFromTTYFunction · 0.65

Implementers 4

readlineUIpprof.go
TestUIinternal/proftest/proftest.go
stdUIinternal/driver/options.go
testUIbrowsertests/testutils.go

Calls

no outgoing calls

Tested by

no test coverage detected