libcruft-util/debug/system_posix.cpp

11 lines
134 B
C++
Raw Normal View History

#include "./system.hpp"
#include <unistd.h>
bool
cruft::debug::is_interactive_console (void)
{
return isatty (STDIN_FILENO);
}