From 09df8e4de36d38558488c915d86c1c9ab1abf65c Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 8 Feb 2018 07:40:55 +0100 Subject: [PATCH] balls --- core/swag.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/swag.go b/core/swag.go index 4ba00a39..1e9d2ae3 100644 --- a/core/swag.go +++ b/core/swag.go @@ -30,7 +30,8 @@ var ( ) func init() { - NoColors := os.Getenv("TERM") == "dumb" || + NoColors = os.Getenv("TERM") == "dumb" || + os.Getenv("TERM") == "" || (!isatty.IsTerminal(os.Stdout.Fd()) && !isatty.IsCygwinTerminal(os.Stdout.Fd())) if NoColors { BOLD = ""