- if (console.handle_err == (fs_file_t*)stderr || console.handle_err == (fs_file_t*)stdout)
- console.color_err = !!(platform_isatty(STDERR_FILENO));
- if (console.handle_out == (fs_file_t*)stderr || console.handle_out == (fs_file_t*)stdout)
- console.color_out = !!(platform_isatty(STDOUT_FILENO));
+ console.color_err = util_isatty(console.handle_err);
+ console.color_out = util_isatty(console.handle_out);