code.gitea.io/gitea@v1.22.3/modules/log/color_console.go (about)

     1  // Copyright 2014 The Gogs Authors. All rights reserved.
     2  // Copyright 2023 The Gitea Authors. All rights reserved.
     3  // SPDX-License-Identifier: MIT
     4  
     5  package log
     6  
     7  // CanColorStdout reports if we can color the Stdout
     8  // Although we could do terminal sniffing and the like - in reality
     9  // most tools on *nix are happy to display ansi colors.
    10  // We will terminal sniff on Windows in console_windows.go
    11  var CanColorStdout = true
    12  
    13  // CanColorStderr reports if we can color the Stderr
    14  var CanColorStderr = true