Build Information
Failed to build SwiftTUI, reference main (1ecb30), with Swift 6.3 for Android on 30 Sep 2026 22:11:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
| `- 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 | }
[260/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[261/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[262/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[263/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[264/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[265/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[266/381] Compiling SwiftTUI PinnedScrollableViews.swift
[267/381] Compiling SwiftTUI AllowsHitTesting.swift
[268/381] Compiling SwiftTUI Background.swift
[269/381] Compiling SwiftTUI Bold.swift
[270/381] Compiling SwiftTUI Border.swift
[271/381] Compiling SwiftTUI Disabled.swift
[272/381] Compiling SwiftTUI DragGesture.swift
[273/381] Compiling SwiftTUI EquatableView.swift
[274/381] Compiling SwiftTUI FixedFrame.swift
[275/381] Compiling SwiftTUI FixedSizeLayoutPriority.swift
[276/381] Compiling SwiftTUI FlexibleFrame.swift
[277/381] Compiling SwiftTUI Focused.swift
[278/381] Compiling SwiftTUI ForegroundColor.swift
[279/381] Compiling SwiftTUI Hidden.swift
[280/381] Compiling SwiftTUI HitTestPassthrough.swift
[281/381] Compiling SwiftTUI Italic.swift
[282/381] Compiling SwiftTUI LineLimit.swift
[283/381] Compiling SwiftTUI OnAppear.swift
[284/381] Compiling SwiftTUI OnChange.swift
[285/381] Compiling SwiftTUI OnDisappear.swift
[286/381] Compiling SwiftTUI OnHover.swift
[287/381] Compiling SwiftTUI OnTapGesture.swift
[288/381] Compiling SwiftTUI OverlayBackground.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[289/381] Compiling SwiftTUI View+ConfirmationDialog.swift
[290/381] Compiling SwiftTUI View+SheetPopover.swift
[291/381] Compiling SwiftTUI Section.swift
[292/381] Compiling SwiftTUI Alignment.swift
[293/381] Compiling SwiftTUI Axis.swift
[294/381] Compiling SwiftTUI HStack.swift
[295/381] Compiling SwiftTUI VStack.swift
[296/381] Compiling SwiftTUI ZStack.swift
[297/381] Compiling SwiftTUI StateEquality.swift
[298/381] Compiling SwiftTUI TupleView.swift
[299/381] Compiling SwiftTUI ViewBuilder.swift
[300/381] Compiling SwiftTUI _ConditionalView.swift
[301/381] Compiling SwiftTUI TextMetrics.swift
[302/381] Compiling SwiftTUI VTBuffer.swift
[303/381] Compiling SwiftTUI VTCell.swift
[304/381] Compiling SwiftTUI VTPosition.swift
[305/381] Compiling SwiftTUI VTStyle.swift
[306/381] Compiling SwiftTUI Duration+Extensions.swift
[307/381] Compiling SwiftTUI Task+Extensions.swift
[308/381] Compiling SwiftTUI VTEvent.swift
[309/381] Compiling SwiftTUI VTEventStream.swift
[310/381] Compiling SwiftTUI VTInputParser.swift
[311/381] Compiling SwiftTUI Event+POSIX.swift
[312/381] Compiling SwiftTUI Padding.swift
[313/381] Compiling SwiftTUI ScrollViewReader.swift
[314/381] Compiling SwiftTUI Selectable.swift
[315/381] Compiling SwiftTUI SelectionDisabled.swift
[316/381] Compiling SwiftTUI SetEnvironment.swift
[317/381] Compiling SwiftTUI Strikethrough.swift
[318/381] Compiling SwiftTUI Tag.swift
[319/381] Compiling SwiftTUI TaskModifier.swift
[320/381] Compiling SwiftTUI TruncationMode.swift
[321/381] Compiling SwiftTUI Underline.swift
[322/381] Compiling SwiftTUI Visibility.swift
[323/381] Compiling SwiftTUI NavigationContext.swift
[324/381] Compiling SwiftTUI NavigationLink.swift
[325/381] Compiling SwiftTUI NavigationPath.swift
[326/381] Compiling SwiftTUI NavigationStack.swift
[327/381] Compiling SwiftTUI ToolbarContent.swift
[328/381] Compiling SwiftTUI ToolbarItemPlacement.swift
[329/381] Compiling SwiftTUI View+Toolbar.swift
[330/381] Compiling SwiftTUI View+NavigationDestination.swift
[331/381] Compiling SwiftTUI View+NavigationTitle.swift
[332/381] Compiling SwiftTUI Optional+View.swift
[333/381] Compiling SwiftTUI PresentationModifiers.swift
[334/381] Compiling SwiftTUI View+Alert.swift
[335/381] 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:176:25: error: cannot find 'termios' in scope
174 | self.hOut = STDOUT_FILENO
175 |
176 | var attr: termios = termios()
| `- error: cannot find '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 | }
[336/381] Compiling SwiftTUI ASCII.swift
[337/381] Compiling SwiftTUI ArrowKeyParser.swift
[338/381] Compiling SwiftTUI Dump.swift
[339/381] Compiling SwiftTUI LineBreakEngine.swift
[340/381] Compiling SwiftTUI ComposedView.swift
[341/381] Compiling SwiftTUI ContiguousChildSource.swift
[342/381] Compiling SwiftTUI GenericView.swift
[343/381] Compiling SwiftTUI LayoutRootView.swift
[344/381] Compiling SwiftTUI ModifierView.swift
[345/381] Compiling SwiftTUI Node.swift
[346/381] Compiling SwiftTUI PrimitiveView.swift
[347/381] Compiling SwiftTUI View.swift
[348/381] Compiling SwiftTUI Weak.swift
[349/381] Compiling SwiftTUI WeakSet.swift
[350/381] Compiling SwiftTUI AnyView.swift
[351/381] Compiling SwiftTUI Button.swift
[352/381] Compiling SwiftTUI ButtonRole.swift
[353/381] Compiling SwiftTUI Color+View.swift
[354/381] Compiling SwiftTUI Divider.swift
[355/381] Compiling SwiftTUI GeometryReader.swift
[356/381] Compiling SwiftTUI LazyElement.swift
[357/381] Compiling SwiftTUI LazyVStack.swift
[358/381] Compiling SwiftTUI Menu.swift
[359/381] Compiling SwiftTUI MenuStyle.swift
[360/381] Compiling SwiftTUI PopupAnchorButton.swift
[361/381] Compiling SwiftTUI PopupPresenter.swift
[362/381] Compiling SwiftTUI Picker.swift
[363/381] Compiling SwiftTUI PickerStyle.swift
[364/381] Compiling SwiftTUI ProgressView.swift
[365/381] Compiling SwiftTUI ScrollView.swift
[366/381] Compiling SwiftTUI SecureField.swift
[367/381] Compiling SwiftTUI Slider.swift
[368/381] Compiling SwiftTUI Spacer.swift
[369/381] Compiling SwiftTUI Stepper.swift
[370/381] Compiling SwiftTUI Text.swift
[371/381] Compiling SwiftTUI TextEdit.swift
[372/381] Compiling SwiftTUI TextField.swift
[373/381] Compiling SwiftTUI TextFieldStyle.swift
[374/381] Compiling SwiftTUI Toggle.swift
[375/381] Compiling SwiftTUI ToggleStyle.swift
[376/381] Compiling SwiftTUI WidthReader.swift
[377/381] Compiling SwiftTUI EmptyView.swift
[378/381] Compiling SwiftTUI ForEach.swift
[379/381] Compiling SwiftTUI Group.swift
[380/381] Compiling SwiftTUI GridItem.swift
[381/381] Compiling SwiftTUI LazyVGrid.swift
BUILD FAILURE 6.3 android