Gradle
  1. Gradle
  2. GRADLE-2319

colored output even if stdout is not connected to a terminal

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.0-rc-3
    • Fix Version/s: None

      Description

      Currently output is only colored if stdout is connected to a terminal.
      But sometimes one wants also colored output if this is not the case.
      e. g. when redirecting the output to "less -R".
      Currently I see no way to achieve this like "-color=always" vs. "-color=auto" in tools like "grep" or "ls". I only see a parameter to disable color. Maybe --no-color could be deprecated in favor of a --color[=WHEN] option where WHEN can be never, auto, always with whatever defaults. In the GNU tools, default is no color and --color is equal to --color=auto which is the current default behaviour of gradle.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Björn Kautler
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development