summaryrefslogtreecommitdiff
path: root/test/process/builtins.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/builtins.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/builtins.zig')
-rw-r--r--test/process/builtins.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/process/builtins.zig b/test/process/builtins.zig
index 0d8ef5d4..410a3f54 100644
--- a/test/process/builtins.zig
+++ b/test/process/builtins.zig
@@ -11,16 +11,16 @@ pub const cases = .{
};
fn lspinfo(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
- for ([_]bool{ false, true }) |tui| {
+ for ([_]bool{ false, true }) |tty| {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- const name = if (tui) "lsp-tui" else "lsp-detached";
- var d = try process.Detached.start(gpa, exe, if (tui) "lsp-root" else name, .{});
+ const name = if (tty) "lsp-tty" else "lsp-detached";
+ var d = try process.Detached.start(gpa, exe, if (tty) "lsp-root" else name, .{});
defer d.deinit();
var term: ?process.Child = null;
defer if (term) |*t| t.deinit();
- if (tui) term = try d.startTui(exe, name, &.{});
+ if (tty) term = try d.startTty(exe, name, &.{});
const address = d.abs(try std.fmt.allocPrint(a, "pardes-9p-{s}.sock", .{name}));
const c = try Conn.dial(gpa, address);
defer c.deinit(gpa);