summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 718f311f..6f9350c6 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -704,7 +704,7 @@ class Cmd(cmd.Cmd):
break
self.pipe_proc = None
else:
- self.stdout.write(msg_str)
+ self.decolorized_write(self.stdout, msg_str)
except BrokenPipeError:
# This occurs if a command's output is being piped to another process and that process closes before the
# command is finished. If you would like your application to print a warning message, then set the