DaGrisa / AphroCite

C Standard Library Wrapper and Unit Test Tool
MIT License
0 stars 0 forks source link

String output colours #4

Open Norskan opened 7 years ago

Norskan commented 7 years ago

The implemented string color constants dont work on the windows command line.

Norskan commented 7 years ago

The windows console does no longer support colored outpud via printf.

Norskan commented 7 years ago

for now we could make the color strings just be set to an emtpy string if the current os is windows

DaGrisa commented 7 years ago

or using the win32 api ... http://stackoverflow.com/questions/9203362/c-color-text-in-terminal-applications-in-windows ... but i don't know if this is clever ... maybe with this directive:

ifdef _WIN32

//windows code goes here