Commit Graph

1 Commits

Author SHA1 Message Date
Érico Nogueira 765316cf81 Add color support.
Use fwrite() directly instead of p(), since we know the string size.
Foreground color values from table in [1].

Also add NOCOLOR option in Makefile to completely disable color support.

[1] https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
2021-07-17 19:39:15 -03:00