diff --git a/src/native/libs/System.Native/pal_console.c b/src/native/libs/System.Native/pal_console.c index b51e16c0bbc271..f06497c2171b67 100644 --- a/src/native/libs/System.Native/pal_console.c +++ b/src/native/libs/System.Native/pal_console.c @@ -42,7 +42,13 @@ int32_t SystemNative_GetWindowSize(intptr_t fd, WinSize* windowSize) int32_t SystemNative_IsATty(intptr_t fd) { +#if defined(TARGET_MACCATALYST) || defined(TARGET_IOS) || defined(TARGET_TVOS) + // there is no terminal on these platforms + (void)fd; + return 0; +#else return isatty(ToFileDescriptor(fd)); +#endif } static char* g_keypadXmit = NULL; // string used to enable application mode, from terminfo