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

Method SetRawTerminal

cli/streams/out.go:55–57  ·  view source on GitHub ↗

SetRawTerminal puts the output of the terminal connected to the stream into raw mode. On UNIX, this does nothing. On Windows, it disables LF -> CRLF/ translation. It is a no-op if Out 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

53// It is a no-op if Out is not a TTY, or if the "NORAW" environment variable is
54// set to a non-empty value.
55func (o *Out) SetRawTerminal() error {
56 return o.cs.setRawTerminal(term.SetRawTerminalOutput)
57}
58
59// RestoreTerminal restores the terminal state if SetRawTerminal succeeded earlier.
60func (o *Out) RestoreTerminal() {

Callers

nothing calls this directly

Calls 1

setRawTerminalMethod · 0.80

Tested by

no test coverage detected