Open ertugrulcetin opened 4 years ago
Not currently, but I'm thinking about how best to add settings like that. Maybe as system properties or environment variables.
It would be nice to have those settings. Maybe in .lein/profiles.clj
?
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)))
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?
I'm using vim too and am having some trouble with this. https://github.com/weavejester/hashp/issues/4#issuecomment-799621441 only seems to work in clj, and i'm using cljs. Curious if anyone else has any workarounds.
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
.
Coloring is a problem in Mozilla Firefox too. ANSI colors in the console are not supported, and they completely break the output:
[1] https://clojurians.slack.com/archives/C03S1KBA2/p1724917601280229 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1720116
Is there any config that we change coloring options?