diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/binaryen-c.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 4d0a04718..d308d88e4 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -3881,7 +3881,11 @@ BinaryenModuleAllocateAndWrite(BinaryenModuleRef module, char* BinaryenModuleAllocateAndWriteText(BinaryenModuleRef module) { std::stringstream ss; + bool colors = Colors::isEnabled(); + + Colors::setEnabled(false); // do not use colors for writing ss << *(Module*)module; + Colors::setEnabled(colors); // restore colors state const std::string out = ss.str(); const int len = out.length() + 1; |