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

Method setIsTerminal

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

setIsTerminal overrides whether a terminal is connected for testing.

(isTerminal bool)

Source from the content-addressed store, hash-verified

42
43// setIsTerminal overrides whether a terminal is connected for testing.
44func (s *commonStream) setIsTerminal(isTerminal bool) { s.tty = isTerminal }
45
46// restoreTerminal restores the terminal state if SetRawTerminal succeeded earlier.
47func (s *commonStream) restoreTerminal() {

Callers 2

SetIsTerminalMethod · 0.80
SetIsTerminalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected