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

MaxCtrl doesn't strip colors from non-tty output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.10
    • Fix Version/s: 2.5.11
    • Component/s: maxctrl
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration