Disable colors in cqlsh

帅比萌擦擦* 提交于 2019-12-08 16:27:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!