You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mop/at.go

14 lines
325 B

package main
import (
`fmt`
`github.com/nsf/termbox-go`
)
func main() {
fore := termbox.ColorGreen | termbox.AttrUnderline
fmt.Printf("f: %08b\n", fore)
fore = termbox.ColorGreen | termbox.AttrUnderline | termbox.AttrReverse
fmt.Printf("f: %08b\n", fore)
fore &= ^termbox.AttrReverse
fmt.Printf("f: %08b\n", fore)
}