Persist claims, AP, teams and presets with session receipts and atomic request rollback. Read rewards and growth from GameData; replace fixed Fiend Hunt user state and preserve the account initialization contract.
18 lines
352 B
Go
18 lines
352 B
Go
//go:build windows
|
|
|
|
package logging
|
|
|
|
import (
|
|
"golang.org/x/sys/windows"
|
|
"os"
|
|
)
|
|
|
|
func terminalSupportsColor(file *os.File) bool {
|
|
handle := windows.Handle(file.Fd())
|
|
var mode uint32
|
|
if windows.GetConsoleMode(handle, &mode) != nil {
|
|
return false
|
|
}
|
|
return windows.SetConsoleMode(handle, mode|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING) == nil
|
|
}
|