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

Method IsTerminal

pprof.go:96–98  ·  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

94// IsTerminal returns whether the UI is known to be tied to an
95// interactive terminal (as opposed to being redirected to a file).
96func (r *readlineUI) IsTerminal() bool {
97 return readline.IsTerminal(int(syscall.Stdout))
98}
99
100// WantBrowser starts a browser on interactive mode.
101func (r *readlineUI) WantBrowser() bool {

Callers 1

WantBrowserMethod · 0.95

Calls 1

IsTerminalMethod · 0.65

Tested by

no test coverage detected