lupyuen commented on issue #14601:
URL: https://github.com/apache/nuttx/issues/14601#issuecomment-2453620323

   Yep that's because GCC Compiler helpfully colours the messages with ANSI 
Escape Codes :-) Try this to remove the Special Characters:
   ```bash
   ## Strip the control chars
   function clean_log {
     local tmp_file=/tmp/release-tmp.log
     cat $log_file \
       | tr -d '\r' \
       | tr -d '\r' \
       | sed 's/\x08/ /g' \
       | sed 's/\x1B(B//g' \
       | sed 's/\x1B\[K//g' \
       | sed 's/\x1B[<=>]//g' \
       | sed 's/\x1B\[[0-9:;<=>?]*[!]*[A-Za-z]//g' \
       | sed 
's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g'
 \
       >$tmp_file
     mv $tmp_file $log_file
     echo ----- "Done! $log_file"
   }
   ```
   https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh#L30-L47
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to