| 52 | #endif |
| 53 | |
| 54 | bool gjs_console_is_tty(int fd) { |
| 55 | #ifdef HAVE_UNISTD_H |
| 56 | return isatty(fd); |
| 57 | #elif defined(_WIN32) |
| 58 | return _isatty(fd); |
| 59 | #else |
| 60 | return false; |
| 61 | #endif |
| 62 | } |
| 63 | |
| 64 | bool gjs_console_clear() { |
| 65 | if (stdout_fd < 0 || !g_log_writer_supports_color(stdout_fd)) |
no outgoing calls
no test coverage detected