Hacker0x01 / hai-on-hackerone

3 stars 1 forks source link

[FEATURE] Implementation of termcolor library #6

Closed iMartzen closed 2 months ago

iMartzen commented 3 months ago

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

iMartzen commented 2 months ago

https://pypi.org/project/termcolor/

iMartzen commented 2 months ago

https://github.com/termcolor/termcolor

iMartzen commented 2 months ago

https://python.plainenglish.io/this-is-how-you-color-print-out-in-python-387b262f24f6