11 lines
239 B
Go
Raw Normal View History

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