summaryrefslogtreecommitdiff
path: root/test/process.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/process.zig')
-rw-r--r--test/process.zig16
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})) }});