添加cmd彩色输出设置。
This commit is contained in:
10
golang/logUse/ansi/ansi_support.go
Normal file
10
golang/logUse/ansi/ansi_support.go
Normal file
@@ -0,0 +1,10 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package ansi
|
||||
|
||||
// EnableANSIConsole 启用控制台 ANSI 转义序列支持
|
||||
// 在非 Windows 系统上,默认已支持 ANSI 转义序列
|
||||
func EnableANSIConsole() bool {
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user