diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 20:54:21 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 21:12:33 -0300 |
| commit | 0ff1fc99eb870f8a1e714a71c1a853066737c822 (patch) | |
| tree | 2c8b4720e2ed190e6f9062cfe8586c3da22aeb42 /test/process.zig | |
| parent | 3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8 (diff) | |
| download | pardes-0ff1fc99eb870f8a1e714a71c1a853066737c822.tar.gz pardes-0ff1fc99eb870f8a1e714a71c1a853066737c822.zip | |
rename: the terminal frontend is the tui (-Dplatform=tui, src/tui/tui.zig, --tui with --tty kept as its old spelling, the process tests' backend .tui and --backend=tui, docs/typ/builtins-tui.json, the Settings report's platform), and the builtin Tty is Term (its registry entry, SPC n t, every default tag, the docs, tests and snap scripts), Tty still run as Term through exec.acme_words, Tty+fish too on a tag and a ctl; tty as a pane's raw mode and as the OS's terminal unchanged
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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/process.zig b/test/process.zig index 21bc8e31..94dfd313 100644 --- a/test/process.zig +++ b/test/process.zig @@ -507,13 +507,13 @@ pub fn of(gpa: std.mem.Allocator, h: *const eh.Harness) Files { /// of the user's is reached. No daemon (PARDES_DAEMON=off, as the pty /// harness starts one): the process is the session, and nothing outlives it. /// Which build the process tests drive (`zig build process-test -/// -Dplatform=tty|gui`, the runner's --backend): a session's effects +/// -Dplatform=tui|gui`, the runner's --backend): a session's effects /// (saves, shells, watches, dumps) are its host's, so each case runs on the /// host it was built with. -pub const Backend = enum { tty, gui }; -pub var backend: Backend = .tty; +pub const Backend = enum { tui, gui }; +pub var backend: Backend = .tui; -/// A case about one frontend's own behaviour (`--tty`, a killed terminal +/// A case about one frontend's own behaviour (`--tui`, a killed terminal /// editor) skips on the other. pub fn only(b: Backend) !void { if (backend != b) return error.SkipZigTest; @@ -725,15 +725,15 @@ pub const Detached = struct { return std.fmt.allocPrintSentinel(d.files.arena.allocator(), "{s}/{s}", .{ d.root(), rel }, 0) catch @panic("out of memory"); } - /// Another session in this root, in a pty, as fs.py's tty sessions: - /// `pardes --tty --9p=<name> <args> <root>/<name>.txt` (holding + /// Another session in this root, in a pty, as fs.py's tui sessions: + /// `pardes --tui --9p=<name> <args> <root>/<name>.txt` (holding /// "initial\n"), back once its socket (`abs("pardes-9p-<name>.sock")`) /// is there. - pub fn startTty(d: *Detached, exe: [:0]const u8, name: []const u8, args: []const [:0]const u8) !Child { + pub fn startTui(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, "--tty", try std.fmt.allocPrintSentinel(a, "--9p={s}", .{name}, 0) }); + try argv.appendSlice(a, &.{ exe, "--tui", 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})) }}); |
