diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 21:19:47 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 21:20:02 -0300 |
| commit | e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb (patch) | |
| tree | 195593cc6ae9d72fcd1e37f08637c5eb038920be /test/process.zig | |
| parent | d6883afab40fb8cfcd40fc6abcde1aaf74b8b108 (diff) | |
| download | pardes-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.zig')
| -rw-r--r-- | test/process.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/process.zig b/test/process.zig index 94dfd313..bba795de 100644 --- a/test/process.zig +++ b/test/process.zig @@ -513,7 +513,7 @@ pub fn of(gpa: std.mem.Allocator, h: *const eh.Harness) Files { pub const Backend = enum { tui, gui }; pub var backend: Backend = .tui; -/// A case about one frontend's own behaviour (`--tui`, a killed terminal +/// A case about one frontend's own behaviour (`--tty`, a killed terminal /// editor) skips on the other. pub fn only(b: Backend) !void { if (backend != b) return error.SkipZigTest; @@ -726,14 +726,14 @@ pub const Detached = struct { } /// Another session in this root, in a pty, as fs.py's tui sessions: - /// `pardes --tui --9p=<name> <args> <root>/<name>.txt` (holding + /// `pardes --tty --9p=<name> <args> <root>/<name>.txt` (holding /// "initial\n"), back once its socket (`abs("pardes-9p-<name>.sock")`) /// is there. - pub fn startTui(d: *Detached, exe: [:0]const u8, name: []const u8, args: []const [:0]const u8) !Child { + pub fn startTty(d: *Detached, exe: [:0]const u8, name: []const u8, args: []const [:0]const u8) !Child { const a = d.files.arena.allocator(); try d.put(try std.fmt.allocPrint(a, "{s}.txt", .{name}), "initial\n"); var argv: std.ArrayList([:0]const u8) = .empty; - try argv.appendSlice(a, &.{ exe, "--tui", try std.fmt.allocPrintSentinel(a, "--9p={s}", .{name}, 0) }); + try argv.appendSlice(a, &.{ exe, "--tty", try std.fmt.allocPrintSentinel(a, "--9p={s}", .{name}, 0) }); try argv.appendSlice(a, args); try argv.append(a, d.abs(try std.fmt.allocPrint(a, "{s}.txt", .{name}))); const env = try a.dupe([2][:0]const u8, &.{.{ "PARDES_DUMP", d.abs(try std.fmt.allocPrint(a, "{s}.dump.zon", .{name})) }}); |
