Files
bd2/go/internal/server/logging/terminal_unix.go
T
Flechazo d04791dd31 feat(server): add colored logs, level rewards, hunting dispatch and fiend hunt
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.
2026-10-04 21:27:19 +08:00

11 lines
173 B
Go

//go:build !windows
package logging
import (
"github.com/mattn/go-isatty"
"os"
)
func terminalSupportsColor(file *os.File) bool { return isatty.IsTerminal(file.Fd()) }