Skip to content

Commit

Permalink
fix(Pipeline): always use terminal colors with WASI
Browse files Browse the repository at this point in the history
rang terminal detection does not work in the WASI environment. The
default execution environment (CLI) usually supports colors, so use
them.
  • Loading branch information
thewtex committed Jul 2, 2022
1 parent 9dd9910 commit 05b74bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/itkPipeline.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ ::Pipeline(std::string description, int argc, char **argv):
}
}
});

#ifndef ITK_WASM_NO_FILESYSTEM_IO
#ifdef __wasi__
rang::setControlMode(rang::control::Force);
#endif
#endif
}

auto
Expand Down

0 comments on commit 05b74bb

Please sign in to comment.