Consider using a library like termcolor instead of including the escape codes directly.
termcolor will detect which escape codes are supported by the terminal, to avoid unsupported codes appearing as raw strings.
It will also handle the ENDC tags for you!
Describe the bug
Consider using a library like termcolor instead of including the escape codes directly. termcolor will detect which escape codes are supported by the terminal, to avoid unsupported codes appearing as raw strings. It will also handle the ENDC tags for you!
See MR comment: https://github.com/Hacker0x01/hai-on-hackerone/pull/1/files/0b81aa2c4e8f4f28cf47d169b42d2cf512a781af#r1638471932
To Reproduce
N/A
Expected behavior
N/A