circt-reduce: avoid non-standard escape

This commit is contained in:
Will Dietz 2022-08-04 15:42:32 -05:00
parent c2047650f3
commit b5f763ff3f
1 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,8 @@ static LogicalResult execute(MLIRContext &context) {
auto clearSummary = [&] {
if (llvm::errs().tell() != errsPosAfterLastSummary)
return;
llvm::errs() << "\e[1A\e[2K"; // move up one line ("1A"), clear line ("2K")
llvm::errs()
<< "\x1B[1A\x1B[2K"; // move up one line ("1A"), clear line ("2K")
};
// Iteratively reduce the input module by applying the current reduction