MCPcopy Create free account
hub / github.com/foxcpp/maddy / TcSetAttr

Function TcSetAttr

internal/cli/clitools/termios.go:67–73  ·  view source on GitHub ↗
(fd uintptr, termios *Termios)

Source from the content-addressed store, hash-verified

65}
66
67func TcSetAttr(fd uintptr, termios *Termios) error {
68 _, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, syscall.TCSETS, uintptr(unsafe.Pointer(termios)))
69 if err != 0 {
70 return err
71 }
72 return nil
73}
74
75func TcGetAttr(fd uintptr) (*Termios, error) {
76 termios := &Termios{}

Callers 2

ReadPasswordFunction · 0.70
TurnOnRawIOFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected