问题
cqlsh, the CQL command prompt for Apache Cassandra, is programmed to show colors in the query results. Is there an easy way to disable colors in cqlsh ?
回答1:
Just have $TERM
set to something that doesn't support color. For example,
~$ TERM=dumb cqlsh
回答2:
To disable color output use ./bin/cqlsh --no-color
Refer
回答3:
It appears that although there is a --color
option, it does not provide a way to disable colors, so I've opened CASSANDRA-4634 to fix that.
As a side note, if the --file
option is used, colors will be disabled, in case that's what you're worried about.
来源:https://stackoverflow.com/questions/12326648/disable-colors-in-cqlsh