MCPcopy Index your code
hub / github.com/coder/coder / EchoEnabled

Method EchoEnabled

pty/pty_linux.go:10–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func (p *otherPty) EchoEnabled() (echo bool, err error) {
11 err = p.control(p.pty, func(fd uintptr) error {
12 t, err := termios.GetTermios(fd)
13 if err != nil {
14 return err
15 }
16
17 echo = (t.Lflag & unix.ECHO) != 0
18 return nil
19 })
20 if err != nil {
21 return false, err
22 }
23 return echo, nil
24}

Callers

nothing calls this directly

Calls 1

controlMethod · 0.95

Tested by

no test coverage detected