MCPcopy Create free account
hub / github.com/docker/cli / SetRawTerminal

Method SetRawTerminal

cli/streams/in.go:57–59  ·  view source on GitHub ↗

SetRawTerminal sets raw mode on the input terminal. It is a no-op if In is not a TTY, or if the "NORAW" environment variable is set to a non-empty value.

()

Source from the content-addressed store, hash-verified

55// is not a TTY, or if the "NORAW" environment variable is set to a non-empty
56// value.
57func (i *In) SetRawTerminal() error {
58 return i.cs.setRawTerminal(term.SetRawTerminal)
59}
60
61// RestoreTerminal restores the terminal state if SetRawTerminal succeeded earlier.
62func (i *In) RestoreTerminal() {

Callers 1

setRawTerminalFunction · 0.45

Calls 1

setRawTerminalMethod · 0.80

Tested by

no test coverage detected