cassandra icon indicating copy to clipboard operation
cassandra copied to clipboard

[CASSANDRA-19706] Enable colored output of nodetool status

Open rtib opened this issue 1 year ago • 2 comments

This improves the readability of nodetool status' output by enabling colored status lines for nodes joining, leaving or moving printed yellow and nodes not up printed red.

rtib avatar Jun 14 '24 20:06 rtib

Some environments might not support ANSI color codes, so it would be good to add detection for environments that don't support it, and either default to non-colored output or provide a clear error/warning.

Spy156 avatar Sep 24 '24 14:09 Spy156

Some environments might not support ANSI color codes, so it would be good to add detection for environments that don't support it, and either default to non-colored output or provide a clear error/warning.

Well, that was the idea with the environment variables to activate the feature. They're set in the environments which support ANSI colors. But, as this is going to be part of the reengineering work ongoing with CASSANDRA-17445, the coloring will be implemented with PicoCLI, which is auto-detecting terminal features.

rtib avatar Sep 24 '24 16:09 rtib