MCPcopy Index your code
hub / github.com/docker/cli / isTerminal

Method isTerminal

cli/streams/stream.go:41–41  ·  view source on GitHub ↗

isTerminal returns whether this stream is connected to a terminal.

()

Source from the content-addressed store, hash-verified

39
40// isTerminal returns whether this stream is connected to a terminal.
41func (s *commonStream) isTerminal() bool { return s.tty }
42
43// setIsTerminal overrides whether a terminal is connected for testing.
44func (s *commonStream) setIsTerminal(isTerminal bool) { s.tty = isTerminal }

Callers 3

IsTerminalMethod · 0.80
IsTerminalMethod · 0.80
CheckTtyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected