[MXS-3483] MaxCtrl doesn't strip colors from non-tty output Created: 2021-04-06  Updated: 2021-11-17  Resolved: 2021-04-06

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.5.10
Fix Version/s: 2.5.11

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
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.


Generated at Thu Feb 08 04:21:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.