MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_console_is_tty

Function gjs_console_is_tty

util/console.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52#endif
53
54bool 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
64bool gjs_console_clear() {
65 if (stdout_fd < 0 || !g_log_writer_supports_color(stdout_fd))

Callers 2

gjs_clear_terminalFunction · 0.85
debugger.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected