zyantific / zydis

Fast and lightweight x86/x86-64 disassembler and code generation library
https://zydis.re
MIT License
3.47k stars 438 forks source link

Improve color output for `ZydisInfo` and `ZydisDisasm` #433

Closed flobernd closed 1 year ago

flobernd commented 1 year ago

This adds support for NO_COLOR and FORCE_COLOR (required in rare cases where output is redirected but VT100 sequences should still be emitted - e.g. when the output is displayed in a TTY later).

Additionally adds color support for ZydisDisasm.