This repository has been archived on 2021-06-21. You can view files and clone it, but cannot push or open issues/pull-requests.
|
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)
|
|
}
|