summaryrefslogtreecommitdiff
path: root/test/process/mounts.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 21:19:47 -0300
committerGabriel Schneider <[email protected]>2026-11-04 21:20:02 -0300
commite67a1a561d9a9a7269bcc7c9af5678d3f50a95cb (patch)
tree195593cc6ae9d72fcd1e37f08637c5eb038920be /test/process/mounts.zig
parentd6883afab40fb8cfcd40fc6abcde1aaf74b8b108 (diff)
downloadpardes-e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb.tar.gz
pardes-e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb.zip
main: the --tty flag again (it starts one shell pane in tty mode, the pane's raw mode, which the user keeps as tty, not the frontend): --tui and the old-flag case gone, the launch lines, the process runner's startTty and the cases' tty sessions as they were; the changelog says the frontend is the tui (-Dplatform=tui, src/tui/), the Tty builtin is Term and Tty still runs it; core, behaviour, fs-unit, pane and process tests (tui 36 of 36), all 113 snap scripts and the gui build pass
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/process/mounts.zig')
-rw-r--r--test/process/mounts.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/process/mounts.zig b/test/process/mounts.zig
index f59a7a0f..10dc7b5a 100644
--- a/test/process/mounts.zig
+++ b/test/process/mounts.zig
@@ -129,7 +129,7 @@ fn quic(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
std.debug.print("SKIP a build without QUIC (-Dquic=true)\n", .{});
return;
}
- for ([_]bool{ false, true }) |tui| for ([_][:0]const u8{ "127.0.0.1", "::1" }) |host| {
+ for ([_]bool{ false, true }) |tty| for ([_][:0]const u8{ "127.0.0.1", "::1" }) |host| {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
@@ -137,11 +137,11 @@ fn quic(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try std.fmt.allocPrintSentinel(a, "--9p-tcp=tcp!{s}!0", .{host}, 0),
try std.fmt.allocPrintSentinel(a, "--9p-quic=quic!{s}!0", .{host}, 0),
};
- var d = try Detached.start(gpa, exe, if (tui) "quic-root" else "server", .{ .args = if (tui) &.{} else &args });
+ var d = try Detached.start(gpa, exe, if (tty) "quic-root" else "server", .{ .args = if (tty) &.{} else &args });
defer d.deinit();
var term: ?process.Child = null;
defer if (term) |*t| t.deinit();
- if (tui) term = try d.startTui(exe, "server", &args);
+ if (tty) term = try d.startTty(exe, "server", &args);
const address = d.abs("pardes-9p-server.sock");
const unix = try Conn.dial(gpa, address);
defer unix.deinit(gpa);