elvish/sys/termios_32bitflag.go
2018-01-06 14:31:11 +01:00

15 lines
315 B
Go

// +build 386,darwin arm,darwin dragonfly freebsd linux netbsd openbsd solaris
package sys
// The type of Termios.Lflag is different on different platforms.
// This file is for those where Lflag is uint32.
func setFlag(flag *uint32, mask uint32, v bool) {
if v {
*flag |= mask
} else {
*flag &= ^mask
}
}