The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftTUI, reference main (f57da5), with Swift 6.2 for Android on 9 Nov 2026 12:42:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[566/687] Compiling SwiftTUI VTColor.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[567/687] Compiling SwiftTUI VTMode.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[568/687] Compiling SwiftTUI NTAPI.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[569/687] Compiling SwiftTUI SystemInfo+Windows.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[570/687] Compiling SwiftTUI WinSDK+Overlay.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
[571/687] Compiling SwiftTUI WindowsError.swift
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:9: error: cannot find 'tcsetattr' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |         `- error: cannot find 'tcsetattr' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:354:30: error: cannot find 'TCSANOW' in scope
352 |     // Restore the original terminal attributes on deinitialization
353 |     var attr = self.sAttributes
354 |     _ = tcsetattr(self.hOut, TCSANOW, &attr)
    |                              `- error: cannot find 'TCSANOW' in scope
355 |
356 |     // Disable mouse reporting
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:368:9: error: cannot find 'Darwin' in scope
366 |     _ = Musl.write(self.hOut, "\u{1B}[?1006l", 8)
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
    |         `- error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:369:9: error: cannot find 'Darwin' in scope
367 | #else
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
    |         `- error: cannot find 'Darwin' in scope
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:370:9: error: cannot find 'Darwin' in scope
368 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003l", 8)
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
    |         `- error: cannot find 'Darwin' in scope
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
372 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:371:9: error: cannot find 'Darwin' in scope
369 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002l", 8)
370 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000l", 8)
371 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006l", 8)
    |         `- error: cannot find 'Darwin' in scope
372 | #endif
373 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:421:20: error: cannot find 'unistd' in scope
419 |     let pfnWrite = Darwin.write
420 | #else
421 |     let pfnWrite = unistd.write
    |                    `- error: cannot find 'unistd' in scope
422 | #endif
423 |     string.utf8.withContiguousStorageIfAvailable { view -> Void in
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:20: error: cannot find 'errno' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:432:29: error: cannot find 'EINTR' in scope
430 |             let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
431 |             if written < 0 {
432 |                 if errno == EINTR { continue }
    |                             `- error: cannot find 'EINTR' in scope
433 |                 break // Unrecoverable error
434 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:24: error: cannot find 'errno' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
452 |                     break
453 |                 }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:451:33: error: cannot find 'EINTR' in scope
449 |                 let written = pfnWrite(self.hOut, ptr.advanced(by: totalWritten), totalBytes - totalWritten)
450 |                 if written < 0 {
451 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
452 |                     break
453 |                 }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[572/687] Emitting module SwiftTUI
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/POSIXError.swift:9:30: error: cannot find 'errno' in scope
 7 |   internal let code: CInt
 8 |
 9 |   public init(_ code: CInt = errno) {
   |                              `- error: cannot find 'errno' in scope
10 |     self.code = code
11 |   }
/host/spi-builder-workspace/Sources/SwiftTUI/POSIXCore/SignalHandler.swift:22:35: error: cannot find type 'sigaction' in scope
 20 |
 21 |   private var handlers: [CInt:[ObjectIdentifier:Handler]] = [:]
 22 |   private var dispositions: [CInt:sigaction] = [:]
    |                                   `- error: cannot find type 'sigaction' in scope
 23 | #if $InlineArray
 24 |   private static var fds = InlineArray<2, CInt>(repeating: -1)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:91:28: error: cannot find type 'termios' in scope
 89 |   private let hIn: CInt
 90 |   private let hOut: CInt
 91 |   private let sAttributes: termios
    |                            `- error: cannot find type 'termios' in scope
 92 |
 93 |   /// Stream of terminal input events parsed from POSIX terminal input.
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:173:16: error: cannot find 'STDIN_FILENO' in scope
171 |   /// terminal is deallocated, ensuring the shell remains usable.
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
    |                `- error: cannot find 'STDIN_FILENO' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:174:17: error: cannot find 'STDOUT_FILENO' in scope
172 |   public init(mode: VTMode) async throws {
173 |     self.hIn = STDIN_FILENO
174 |     self.hOut = STDOUT_FILENO
    |                 `- error: cannot find 'STDOUT_FILENO' in scope
175 |
176 |     var attr: termios = termios()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:176:15: error: cannot find type 'termios' in scope
174 |     self.hOut = STDOUT_FILENO
175 |
176 |     var attr: termios = termios()
    |               `- error: cannot find type 'termios' in scope
177 |     guard tcgetattr(hIn, &attr) == 0 else {
178 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:177:11: error: cannot find 'tcgetattr' in scope
175 |
176 |     var attr: termios = termios()
177 |     guard tcgetattr(hIn, &attr) == 0 else {
    |           `- error: cannot find 'tcgetattr' in scope
178 |       throw POSIXError()
179 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:18: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                  `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:27: error: cannot find 'ICANON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                           `- error: cannot find 'ICANON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:37: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                     `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:46: error: cannot find 'ECHO' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                              `- error: cannot find 'ECHO' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:54: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                      `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:63: error: cannot find 'IXON' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                               `- error: cannot find 'IXON' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:71: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                       `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:80: error: cannot find 'ICRNL' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                `- error: cannot find 'ICRNL' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:89: error: cannot find 'tcflag_t' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                         `- error: cannot find 'tcflag_t' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:187:98: error: cannot find 'ISIG' in scope
185 |     case .raw:
186 |       // Disable canonical mode, echo, XON/XOFF, CR to NL translation, and signal generation
187 |       let mask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL) | tcflag_t(ISIG)
    |                                                                                                  `- error: cannot find 'ISIG' in scope
188 |       attr.c_lflag &= ~mask
189 |     case .canonical:
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:23: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                       `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:32: error: cannot find 'ICANON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                `- error: cannot find 'ICANON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:42: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                          `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:51: error: cannot find 'ECHO' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                   `- error: cannot find 'ECHO' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:59: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                           `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:68: error: cannot find 'IXON' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                    `- error: cannot find 'IXON' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:76: error: cannot find 'tcflag_t' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                            `- error: cannot find 'tcflag_t' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:191:85: error: cannot find 'ICRNL' in scope
189 |     case .canonical:
190 |       // Enable canonical mode, echo, XON/XOFF, and CR to NL translation
191 |       let canonMask = tcflag_t(ICANON) | tcflag_t(ECHO) | tcflag_t(IXON) | tcflag_t(ICRNL)
    |                                                                                     `- error: cannot find 'ICRNL' in scope
192 |       attr.c_lflag |= canonMask
193 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:11: error: cannot find 'tcsetattr' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |           `- error: cannot find 'tcsetattr' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:195:27: error: cannot find 'TCSANOW' in scope
193 |     }
194 |
195 |     guard tcsetattr(hOut, TCSANOW, &attr) == 0 else {
    |                           `- error: cannot find 'TCSANOW' in scope
196 |       throw POSIXError()
197 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:199:14: error: cannot find 'winsize' in scope
197 |     }
198 |
199 |     var ws = winsize()
    |              `- error: cannot find 'winsize' in scope
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
201 |       throw POSIXError()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:11: error: cannot find 'ioctl' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |           `- error: cannot find 'ioctl' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:200:23: error: cannot find 'TIOCGWINSZ' in scope
198 |
199 |     var ws = winsize()
200 |     guard ioctl(hOut, TIOCGWINSZ, &ws) == 0 else {
    |                       `- error: cannot find 'TIOCGWINSZ' in scope
201 |       throw POSIXError()
202 |     }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:206:24: error: cannot find 'EINVAL' in scope
204 |     let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
205 |     guard size.width > 0 && size.height > 0 else {
206 |       throw POSIXError(EINVAL)
    |                        `- error: cannot find 'EINVAL' in scope
207 |     }
208 |     _size = Mutex(size)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:5: error: cannot find 'signal' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |     `- error: cannot find 'signal' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:12: error: cannot find 'SIGWINCH' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |            `- error: cannot find 'SIGWINCH' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:211:22: error: cannot find 'SIG_IGN' in scope
209 |
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
    |                      `- error: cannot find 'SIG_IGN' in scope
212 |     installCrashHandler()
213 |
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:212:5: error: cannot find 'installCrashHandler' in scope
210 |     // setup SIGWINCH handler to update size
211 |     signal(SIGWINCH, SIG_IGN)
212 |     installCrashHandler()
    |     `- error: cannot find 'installCrashHandler' in scope
213 |
214 |     // Unbounded: `.bufferingNewest(N)` drops *oldest* batches when the consumer
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:224:68: error: cannot find 'SIGWINCH' in scope
222 |
223 |     self.input = VTEventStream(AsyncThrowingStream(bufferingPolicy: .unbounded) { [hIn, hOut] continuation in
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
    |                                                                    `- error: cannot find 'SIGWINCH' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:226:18: error: cannot find 'winsize' in scope
224 |       let sigwinchSource = DispatchSource.makeSignalSource(signal: SIGWINCH, queue: .main)
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
    |                  `- error: cannot find 'winsize' in scope
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:12: error: cannot find 'ioctl' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |            `- error: cannot find 'ioctl' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:227:24: error: cannot find 'TIOCGWINSZ' in scope
225 |       sigwinchSource.setEventHandler {
226 |         var ws = winsize()
227 |         if ioctl(hOut, TIOCGWINSZ, &ws) == 0 {
    |                        `- error: cannot find 'TIOCGWINSZ' in scope
228 |           let size = Size(width: Int(ws.ws_col), height: Int(ws.ws_row))
229 |           if size.width > 0 && size.height > 0 {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:23: error: cannot find 'pollfd' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                       `- error: cannot find 'pollfd' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:242:53: error: cannot find 'POLLIN' in scope
240 |           do {
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
    |                                                     `- error: cannot find 'POLLIN' in scope
243 |             let pr = poll(&pfd, 1, 50)
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:243:22: error: cannot find 'poll' in scope
241 |             // Poll so cancel / generation bump can stop a stuck `read`.
242 |             var pfd = pollfd(fd: hIn, events: Int16(POLLIN), revents: 0)
243 |             let pr = poll(&pfd, 1, 50)
    |                      `- error: cannot find 'poll' in scope
244 |             if Task.isCancelled || !StdinReaderGate.owns(stdinGeneration) {
245 |               break
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:18: error: cannot find 'errno' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                  `- error: cannot find 'errno' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:248:27: error: cannot find 'EINTR' in scope
246 |             }
247 |             if pr < 0 {
248 |               if errno == EINTR { continue }
    |                           `- error: cannot find 'EINTR' in scope
249 |               throw POSIXError()
250 |             }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:255:27: error: cannot find 'read' in scope
253 |             let events = try withUnsafeTemporaryAllocation(of: CChar.self, capacity: 8192) {
254 |               guard let baseAddress = $0.baseAddress else { throw POSIXError() }
255 |               let count = read(hIn, baseAddress, $0.count)
    |                           `- error: cannot find 'read' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:20: error: cannot find 'errno' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                    `- error: cannot find 'errno' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:258:29: error: cannot find 'EINTR' in scope
256 |               guard count > 0 else {
257 |                 if count == 0 { throw CancellationError() }
258 |                 if errno == EINTR { return [VTEvent]() }
    |                             `- error: cannot find 'EINTR' in scope
259 |                 throw POSIXError()
260 |               }
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:344:9: error: cannot find 'Darwin' in scope
342 |     _ = Musl.write(self.hOut, "\u{1B}[?1006h", 8)
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
    |         `- error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:345:9: error: cannot find 'Darwin' in scope
343 | #else
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
    |         `- error: cannot find 'Darwin' in scope
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:346:9: error: cannot find 'Darwin' in scope
344 |     _ = Darwin.write(self.hOut, "\u{1B}[?1000h", 8)
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
    |         `- error: cannot find 'Darwin' in scope
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
348 | #endif
/host/spi-builder-workspace/Sources/SwiftTUI/VirtualTerminal/Platform/POSIXTerminal.swift:347:9: error: cannot find 'Darwin' in scope
345 |     _ = Darwin.write(self.hOut, "\u{1B}[?1002h", 8)
346 |     _ = Darwin.write(self.hOut, "\u{1B}[?1003h", 8)
347 |     _ = Darwin.write(self.hOut, "\u{1B}[?1006h", 8)
    |         `- error: cannot find 'Darwin' in scope
348 | #endif
349 |   }
[573/687] Compiling SwiftTUI MenuStyle.swift
[574/687] Compiling SwiftTUI PopupAnchorButton.swift
[575/687] Compiling SwiftTUI PopupPresenter.swift
[576/687] Compiling SwiftTUI Picker.swift
[577/687] Compiling SwiftTUI PickerStyle.swift
[578/687] Compiling SwiftTUI ProgressView.swift
[579/687] Compiling SwiftTUI ScrollView.swift
[580/687] Compiling SwiftTUI SecureField.swift
[581/687] Compiling SwiftTUI Slider.swift
[582/687] Compiling SwiftTUI Spacer.swift
[583/687] Compiling SwiftTUI Stepper.swift
[584/687] Compiling SwiftTUI Text.swift
[585/687] Compiling SwiftTUI TextEdit.swift
[586/687] Compiling SwiftTUI TextField.swift
[587/687] Compiling SwiftTUI TextFieldStyle.swift
[588/687] Compiling SwiftTUI Toggle.swift
[589/687] Compiling SwiftTUI ToggleStyle.swift
[590/687] Compiling SwiftTUI WidthReader.swift
[591/687] Compiling SwiftTUI EmptyView.swift
[592/687] Compiling SwiftTUI ForEach.swift
[593/687] Compiling SwiftTUI Group.swift
[594/687] Compiling SwiftTUI GridItem.swift
[595/687] Compiling SwiftTUI LazyVGrid.swift
[596/687] Compiling SwiftTUI View+Alert.swift
[597/687] Compiling SwiftTUI View+ConfirmationDialog.swift
[598/687] Compiling SwiftTUI View+SheetPopover.swift
[599/687] Compiling SwiftTUI Section.swift
[600/687] Compiling SwiftTUI Alignment.swift
[601/687] Compiling SwiftTUI Axis.swift
[602/687] Compiling SwiftTUI HStack.swift
[603/687] Compiling SwiftTUI VStack.swift
[604/687] Compiling SwiftTUI ZStack.swift
[605/687] Compiling SwiftTUI StateEquality.swift
[606/687] Compiling SwiftTUI TupleView.swift
[607/687] Compiling SwiftTUI ViewBuilder.swift
[608/687] Compiling SwiftTUI _ConditionalView.swift
[609/687] Compiling SwiftTUI TextMetrics.swift
[610/687] Compiling SwiftTUI VTBuffer.swift
[611/687] Compiling SwiftTUI VTCell.swift
[612/687] Compiling SwiftTUI VTPosition.swift
[613/687] Compiling SwiftTUI VTStyle.swift
[614/687] Compiling SwiftTUI Duration+Extensions.swift
[615/687] Compiling SwiftTUI Task+Extensions.swift
[616/687] Compiling SwiftTUI VTEvent.swift
[617/687] Compiling SwiftTUI VTEventStream.swift
[618/687] Compiling SwiftTUI VTInputParser.swift
[619/687] Compiling SwiftTUI PinnedScrollableViews.swift
[620/687] Compiling SwiftTUI AllowsHitTesting.swift
[621/687] Compiling SwiftTUI Background.swift
[622/687] Compiling SwiftTUI Bold.swift
[623/687] Compiling SwiftTUI Border.swift
[624/687] Compiling SwiftTUI Disabled.swift
[625/687] Compiling SwiftTUI DragGesture.swift
[626/687] Compiling SwiftTUI EquatableView.swift
[627/687] Compiling SwiftTUI FixedFrame.swift
[628/687] Compiling SwiftTUI FixedSizeLayoutPriority.swift
[629/687] Compiling SwiftTUI FlexibleFrame.swift
[630/687] Compiling SwiftTUI Focused.swift
[631/687] Compiling SwiftTUI ForegroundColor.swift
[632/687] Compiling SwiftTUI Hidden.swift
[633/687] Compiling SwiftTUI HitTestPassthrough.swift
[634/687] Compiling SwiftTUI Italic.swift
[635/687] Compiling SwiftTUI LineLimit.swift
[636/687] Compiling SwiftTUI OnAppear.swift
[637/687] Compiling SwiftTUI OnChange.swift
[638/687] Compiling SwiftTUI OnDisappear.swift
[639/687] Compiling SwiftTUI OnHover.swift
[640/687] Compiling SwiftTUI OnTapGesture.swift
[641/687] Compiling SwiftTUI OverlayBackground.swift
[642/687] Compiling SwiftTUI Padding.swift
[643/687] Compiling SwiftTUI ScrollViewReader.swift
[644/687] Compiling SwiftTUI Selectable.swift
[645/687] Compiling SwiftTUI SelectionDisabled.swift
[646/687] Compiling SwiftTUI SetEnvironment.swift
[647/687] Compiling SwiftTUI Strikethrough.swift
[648/687] Compiling SwiftTUI Tag.swift
[649/687] Compiling SwiftTUI TaskModifier.swift
[650/687] Compiling SwiftTUI TruncationMode.swift
[651/687] Compiling SwiftTUI Underline.swift
[652/687] Compiling SwiftTUI Visibility.swift
[653/687] Compiling SwiftTUI NavigationContext.swift
[654/687] Compiling SwiftTUI NavigationLink.swift
[655/687] Compiling SwiftTUI NavigationPath.swift
[656/687] Compiling SwiftTUI NavigationStack.swift
[657/687] Compiling SwiftTUI ToolbarContent.swift
[658/687] Compiling SwiftTUI ToolbarItemPlacement.swift
[659/687] Compiling SwiftTUI View+Toolbar.swift
[660/687] Compiling SwiftTUI View+NavigationBarBackButtonHidden.swift
[661/687] Compiling SwiftTUI View+NavigationDestination.swift
[662/687] Compiling SwiftTUI View+NavigationTitle.swift
[663/687] Compiling SwiftTUI Optional+View.swift
[664/687] Compiling SwiftTUI PresentationModifiers.swift
[665/687] Compiling SwiftTUI ASCII.swift
[666/687] Compiling SwiftTUI ArrowKeyParser.swift
[667/687] Compiling SwiftTUI Dump.swift
[668/687] Compiling SwiftTUI LineBreakEngine.swift
[669/687] Compiling SwiftTUI ComposedView.swift
[670/687] Compiling SwiftTUI ContiguousChildSource.swift
[671/687] Compiling SwiftTUI GenericView.swift
[672/687] Compiling SwiftTUI LayoutRootView.swift
[673/687] Compiling SwiftTUI ModifierView.swift
[674/687] Compiling SwiftTUI Node.swift
[675/687] Compiling SwiftTUI PrimitiveView.swift
[676/687] Compiling SwiftTUI View.swift
[677/687] Compiling SwiftTUI Weak.swift
[678/687] Compiling SwiftTUI WeakSet.swift
[679/687] Compiling SwiftTUI AnyView.swift
[680/687] Compiling SwiftTUI Button.swift
[681/687] Compiling SwiftTUI ButtonRole.swift
[682/687] Compiling SwiftTUI Color+View.swift
[683/687] Compiling SwiftTUI Divider.swift
[684/687] Compiling SwiftTUI GeometryReader.swift
[685/687] Compiling SwiftTUI LazyElement.swift
[686/687] Compiling SwiftTUI LazyVStack.swift
[687/687] Compiling SwiftTUI Menu.swift
BUILD FAILURE 6.2 android