Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-3483

MaxCtrl doesn't strip colors from non-tty output

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.5.10
    • 2.5.11
    • maxctrl
    • None

    Description

      If the output terminal isn't a TTY, the colors will be printed as-is instead of being displayed as the actual colors. MaxCtrl should check whether the output is a TTY before using colors in the output.

      For example, the output of watch maxctrl list servers is malformed due to the fact that it doesn't transform color commands into actual colors by default. A workaround for this is to use watch --color.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.