Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable coloring? #4

Open
ertugrulcetin opened this issue Dec 18, 2019 · 7 comments
Open

How to disable coloring? #4

ertugrulcetin opened this issue Dec 18, 2019 · 7 comments

Comments

@ertugrulcetin
Copy link

Is there any config that we change coloring options?

@weavejester
Copy link
Owner

Not currently, but I'm thinking about how best to add settings like that. Maybe as system properties or environment variables.

@ertugrulcetin
Copy link
Author

It would be nice to have those settings. Maybe in .lein/profiles.clj?

@agzam
Copy link

agzam commented Mar 15, 2021

I'm too lazy to make and suggest a PR (of course I'm lazy, why would I use Clojure if I wasn't?).
Because I'm super lazy, I'm just doing this shit:

(alter-var-root
 #'hashp.core/print-opts
 (constantly (assoc hashp.core/print-opts :print-color false)))

@timrobinson33
Copy link

maybe I'm doing something stupid but the highlighting makes it all but impossible to use in fireplace. Even with @agzam's hack still some escape codes are generated. Or maybe I'm just the only one using vim for clojure?

@kovasap
Copy link

kovasap commented Aug 28, 2022

I'm using vim too and am having some trouble with this. #4 (comment) only seems to work in clj, and i'm using cljs. Curious if anyone else has any workarounds.

@borkdude
Copy link

borkdude commented Feb 3, 2023

This seems to be a broadly applied convention: https://no-color.org/
Although a dedicated system property may also work since setting environment variables isn't supported in project.clj and deps.edn.

@bgalartza
Copy link

Coloring is a problem in Mozilla Firefox too. ANSI colors in the console are not supported, and they completely break the output:
image

[1] https://clojurians.slack.com/archives/C03S1KBA2/p1724917601280229
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1720116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants