blob: b3b83e0d93613579a6bbdb04ccb8ca4f92726acd [file] [log] [blame] [raw]
#include <windows.h>
#include <shared.h>
int isatty(int fd) {
BY_HANDLE_FILE_INFORMATION_NEW information;
if(fd == -1) return 0;
return !GetFileInformationByHandle((void *)fd, (BY_HANDLE_FILE_INFORMATION *)&information);
}