<p>Yes this is possible</p>
<pre><code>cardano-node &quot;rest of the command&quot; | sed -r &quot;s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g&quot;
</code></pre>
<p>will do the trick. Credits to this <a href="https://stackoverflow.com/a/18000433/17269751">answer</a>.</p>

CC BY-SA 4.0
2023-01-25T15:53:10.773Z
The proposed line does not disable colors in the cardano-node stdout/logs. This is removing the special sequences for colors.

I am looking for a configuration setting that omits the sequences used for colorized output. Which should happen automatically, when running in a non-interactive shell - but this is unfortunately not the case with the cardano-node CLI tool.
Attila
CC BY-SA 4.0
2023-01-25T09:01:12.097Z
2023-01-25T09:01:12.097Z
Fermat
<p>I am wondering, if it is possible to disable the colorization of the cardano-node logs.</p>
<p>Is it possible to disable the colors in the stdoutput of cardano-node?</p>
<p><a href="https://i.sstatic.net/nMOYv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nMOYv.png" alt="Screenshot of cardano node logs with colors" /></a></p>

<cardano-node><output>
Disable color in cardano-node logs
# Disable color in cardano-node logs

(Asked by: username_0 on 2023-01-25)

I am wondering, if it is possible to disable the colorization of the cardano-node logs.

Is it possible to disable the colors in the stdoutput of cardano-node?

[![Screenshot of cardano node logs with colors](https://i.sstatic.net/nMOYv.png)](https://i.sstatic.net/nMOYv.png)

**Tags:** cardano-node, output

---

## 1 answers

### Answer by username_1 on 2023-01-25. Score: 0

Yes this is possible
cardano-node "rest of the command" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g"

will do the trick. Credits to this answer.

> **Comments:**
> **username_0**: The proposed line does not disable colors in the cardano-node stdout/logs. This is removing the special sequences for colors.  I am looking for a configuration setting that omits the sequences used for colorized output. Which should happen automatically, when running in a non-interactive shell - but this is unfortunately not the case with the cardano-node CLI tool.  

---

