From e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 21:19:47 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/process.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/process.zig') 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= /.txt` (holding + /// `pardes --tty --9p= /.txt` (holding /// "initial\n"), back once its socket (`abs("pardes-9p-.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})) }}); -- cgit v1.3