platform abstraction to know if the current application is running in terminal.
This is so I don't output ansi escape codes for colors when not in terminal.
example of usage would be:
char *red_begin = "";
char *color_reset = "";
if (nob_isatty(nob_fileno(stdout)))
{
red_begin = "\x1b[31m";
color_reset = "\x1b[0m";
}
platform abstraction to know if the current application is running in terminal.
This is so I don't output ansi escape codes for colors when not in terminal.
example of usage would be: