Printer with meta :color #168
-
What do you think about being able to define the color of the text by the Printer? I've been thinking/trying something like this (defn print-str
"Same as print. But instead of writing it to an output stream,
The resulting string is returned."
@{:color color}
[& xs]
(let [len (count xs)
printer (php/:: Printer (nonReadable color))
pp |(php/-> printer (print $))]
(case (count xs)
... etc ... But the output I get is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The meta data you mentioned is only available for Regarding color: Do you want colorful html output or colorful bash output? |
Beta Was this translation helpful? Give feedback.
-
This was solved by creating a new function |
Beta Was this translation helpful? Give feedback.
This was solved by creating a new function
println-colorful
#202