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

Method setRawTerminal

cli/streams/stream.go:53–63  ·  view source on GitHub ↗
(setter func(uintptr) (*term.State, error))

Source from the content-addressed store, hash-verified

51}
52
53func (s *commonStream) setRawTerminal(setter func(uintptr) (*term.State, error)) error {
54 if !s.tty || os.Getenv("NORAW") != "" {
55 return nil
56 }
57 state, err := setter(s.fd)
58 if err != nil {
59 return err
60 }
61 s.state = state
62 return nil
63}
64
65func (s *commonStream) terminalSize() (height uint, width uint) {
66 if !s.tty {

Callers 2

SetRawTerminalMethod · 0.80
SetRawTerminalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected