Benevolent Engineer
Benevolent Engineer

Reputation: 357

Disable colors in cqlsh

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 ?

Upvotes: 9

Views: 2208

Answers (3)

Pargavi Rajendran
Pargavi Rajendran

Reputation: 101

To disable color output use ./bin/cqlsh --no-color

Refer

Upvotes: 9

the paul
the paul

Reputation: 9161

Just have $TERM set to something that doesn't support color. For example,

~$ TERM=dumb cqlsh

Upvotes: 5

Tyler Hobbs
Tyler Hobbs

Reputation: 6932

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.

Upvotes: 3

Related Questions