添加cmd彩色输出设置。

This commit is contained in:
2026-03-23 11:01:29 +08:00
parent b7a99f6425
commit d18880c473
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
//go:build !windows
// +build !windows
package ansi
// EnableANSIConsole 启用控制台 ANSI 转义序列支持
// 在非 Windows 系统上,默认已支持 ANSI 转义序列
func EnableANSIConsole() bool {
return true
}