Make short work of your logs!
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.
 
 

13 lines
272 B

package beaver
import "golang.org/x/sys/windows"
func init() {
mode := uint32(0)
if err := windows.GetConsoleMode(windows.Stdout, &mode); err != nil {
return
}
mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING
_ = windows.SetConsoleMode(windows.Stdout, mode)
}