mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
15 lines
272 B
Go
15 lines
272 B
Go
// +build amd64,darwin arm64,darwin
|
|
|
|
package sys
|
|
|
|
// The type of Termios.Lflag is different on different platforms.
|
|
// This file is for those where Lflag is uint64.
|
|
|
|
func setFlag(flag *uint64, mask uint64, v bool) {
|
|
if v {
|
|
*flag |= mask
|
|
} else {
|
|
*flag &= ^mask
|
|
}
|
|
}
|