gnzlbg / cargo-asm

cargo subcommand showing the assembly or llvm-ir generated for Rust code
https://github.com/gnzlbg/cargo-asm
Other
1.19k stars 37 forks source link

Detect tty output for colorization #101

Open alok opened 5 years ago

alok commented 5 years ago

I often do cargo asm > file.s, but get color codes in the output. I think a better behavior is to detect if the output is a tty, and colorize accordingly.