From 8971f87cd440890f7e71ef199748e39faefbad00 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 10:22:32 +0000 Subject: [PATCH 1/3] Initial plan From 06b2044c0e51e1d642ccda16e7855583e8678613 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 10:26:04 +0000 Subject: [PATCH 2/3] Fix SystemNative_IsATty for iOS/tvOS/MacCatalyst: return 0 instead of calling isatty Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/96c22fac-0eb4-4756-ae91-390e30c5c572 Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com> --- src/native/libs/System.Native/pal_console.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/native/libs/System.Native/pal_console.c b/src/native/libs/System.Native/pal_console.c index b51e16c0bbc271..76a2037ed11f6f 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) + // isatty is not supported 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 From e35c25163824a1db419bbf11a35c8cc9e62e01f0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 10:33:39 +0000 Subject: [PATCH 3/3] Improve comment: there is no terminal on iOS/tvOS/MacCatalyst Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/715fb05b-348a-414e-9529-e30e3eacbbbb Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com> --- src/native/libs/System.Native/pal_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/libs/System.Native/pal_console.c b/src/native/libs/System.Native/pal_console.c index 76a2037ed11f6f..f06497c2171b67 100644 --- a/src/native/libs/System.Native/pal_console.c +++ b/src/native/libs/System.Native/pal_console.c @@ -43,7 +43,7 @@ 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) - // isatty is not supported on these platforms + // there is no terminal on these platforms (void)fd; return 0; #else