11 lines
239 B
Go
Raw Normal View History

2024-03-05 17:47:02 +01:00
package color
import (
"os"
2024-03-12 00:25:20 +01:00
"git.akyoto.dev/go/color/tty"
2024-03-05 17:47:02 +01:00
)
// Terminal is a boolean that indicates if we're in a terminal with truecolor support.
2024-03-12 00:25:20 +01:00
var Terminal = tty.IsTerminal(os.Stdout.Fd()) && os.Getenv("COLORTERM") == "truecolor"