mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
| datasource | package | from | to | | ---------- | ------------------------------- | ------ | ------ | | go | github.com/jedib0t/go-pretty/v6 | v6.7.3 | v6.7.5 | Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
15 lines
387 B
Go
15 lines
387 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package text
|
|
|
|
import "os"
|
|
|
|
func areANSICodesSupported() bool {
|
|
// On Unix systems, ANSI codes are generally supported unless TERM is "dumb"
|
|
// This is a basic check; 256-color sequences are ANSI sequences and will
|
|
// be handled by terminals that support them (or ignored by those that don't)
|
|
term := os.Getenv("TERM")
|
|
return term != "dumb"
|
|
}
|