summaryrefslogtreecommitdiff
path: root/src/tui/tui.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 02:21:02 -0300
committerGabriel Schneider <[email protected]>2026-11-10 03:06:13 -0300
commit22b981446238977d9c3f85eb4856324a9daa9753 (patch)
tree2c3fb711be7e54f6ced04edf605625ed55ce9830 /src/tui/tui.zig
parent7a443bcdd4d82b259f6a02ade335aa5ccadf2640 (diff)
downloadpardes-22b981446238977d9c3f85eb4856324a9daa9753.tar.gz
pardes-22b981446238977d9c3f85eb4856324a9daa9753.zip
macos: pardes builds for darwin again as far as a Linux host can take it (the tui links, the native shell's libpardes.a and its tests compile; the gui stops at SDL's frameworks and xcrun): recvmsg's CMSG_CLOEXEC and close_range are Linux's (darwin marks the received fds FD_CLOEXEC, closes the rest one by one), hungUp asks no fd of vaxis's test tty there, a kind exports pardes_addon only as its own library's root (macOS's libpardes.a had every compiled-in kind's), and macos.zig drops what the rewrite deleted (animation.zig, the CRT post pass and scene clock, pane transitions and their diff, the presentation's pointer map: the C ABI stays, its lists empty), with its scene, panel-order and panel-mask tests and the theme-fade half of its live-session test gone; the rest of upstream a41360e3 is dropped as superseded (views.zig's RenderMotion and drawOneAt, replica.zig's motion, input stamp, drawAt and animating with its two cursor tests, window_fields and the whitespace hunks)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/tui/tui.zig')
-rw-r--r--src/tui/tui.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig
index df51960e..73103046 100644
--- a/src/tui/tui.zig
+++ b/src/tui/tui.zig
@@ -907,6 +907,8 @@ const Screen = struct {
/// Its terminal hung up, or the stub that waits on it is gone.
fn hungUp(sc: *const Screen) bool {
+ // vaxis's test tty off Linux has no fd.
+ if (comptime !@hasField(@TypeOf(sc.tty), "fd")) return false;
const stub = daemon.stub;
const handle = if (@TypeOf(sc.tty.fd) == std.Io.File) sc.tty.fd.handle else sc.tty.fd;
var fds = [_]posix.pollfd{