summaryrefslogtreecommitdiff
path: root/test/process
diff options
context:
space:
mode:
Diffstat (limited to 'test/process')
-rw-r--r--test/process/edit.zig3
-rw-r--r--test/process/flags.zig6
-rw-r--r--test/process/look_and_exec.zig3
-rw-r--r--test/process/mounts.zig2
-rw-r--r--test/process/other_files.zig6
-rw-r--r--test/process/root_ctl.zig12
-rw-r--r--test/process/tree.zig6
-rw-r--r--test/process/tty_boot.zig55
-rw-r--r--test/process/tty_editing.zig18
-rw-r--r--test/process/tty_images.zig3
-rw-r--r--test/process/tty_layout.zig5
-rw-r--r--test/process/tty_terminals.zig12
12 files changed, 97 insertions, 34 deletions
diff --git a/test/process/edit.zig b/test/process/edit.zig
index 30477552..7e86bc8a 100644
--- a/test/process/edit.zig
+++ b/test/process/edit.zig
@@ -36,7 +36,8 @@ const Slow = struct {
};
fn editCommands(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
- var d = try process.Detached.start(gpa, exe, "edit", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "edit", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const f = &d.files;
var arena = std.heap.ArenaAllocator.init(gpa);
diff --git a/test/process/flags.zig b/test/process/flags.zig
index 3c54a7ad..10cfd00e 100644
--- a/test/process/flags.zig
+++ b/test/process/flags.zig
@@ -143,7 +143,8 @@ fn forwarding(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "forwarding", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "forwarding", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const c = try Conn.dial(gpa, d.socket());
defer c.deinit(gpa);
@@ -310,7 +311,8 @@ fn waitAndPager(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "wait", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "wait", .{ .init = "Jumps new-pane\n" });
var ended = false;
defer if (!ended) d.deinit();
const c = try Conn.dial(gpa, d.socket());
diff --git a/test/process/look_and_exec.zig b/test/process/look_and_exec.zig
index 8ba52534..0c38f241 100644
--- a/test/process/look_and_exec.zig
+++ b/test/process/look_and_exec.zig
@@ -67,7 +67,8 @@ fn canary(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "flow", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "flow", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
try d.put("a.txt", "alpha one\nshared word\n");
try d.put("b.txt", "beta two\nshared word\n");
diff --git a/test/process/mounts.zig b/test/process/mounts.zig
index 8a7fc6fe..8ac016c3 100644
--- a/test/process/mounts.zig
+++ b/test/process/mounts.zig
@@ -32,7 +32,9 @@ fn startup(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
defer client.deinit(gpa);
const address = first.abs("pardes-9p-first.sock");
const own = first.abs("pardes-9p-second.sock");
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
var second = try Detached.start(gpa, exe, "second", .{
+ .init = "Jumps new-pane\n",
.root = first.root(),
.args = &.{ try std.fmt.allocPrintSentinel(a, "--mount=peer={s}", .{address}, 0), try std.fmt.allocPrintSentinel(a, "--mount=own={s}", .{own}, 0) },
});
diff --git a/test/process/other_files.zig b/test/process/other_files.zig
index 38aa0bd5..69f65884 100644
--- a/test/process/other_files.zig
+++ b/test/process/other_files.zig
@@ -97,7 +97,8 @@ fn recentSurvivesRestart(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
defer arena.deinit();
const a = arena.allocator();
var root_buf: [4096]u8 = undefined;
- var one = try process.Detached.start(gpa, exe, "recent1", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var one = try process.Detached.start(gpa, exe, "recent1", .{ .init = "Jumps new-pane\n" });
const root = keepRoot(&one, &root_buf);
defer removeRoot(root);
const kept = try std.fmt.allocPrint(a, "{s}/kept.txt", .{root});
@@ -147,7 +148,8 @@ fn recentShared(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
defer arena.deinit();
const a = arena.allocator();
var root_buf: [4096]u8 = undefined;
- var one = try process.Detached.start(gpa, exe, "store1", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var one = try process.Detached.start(gpa, exe, "store1", .{ .init = "Jumps new-pane\n" });
const root = keepRoot(&one, &root_buf);
defer removeRoot(root);
{
diff --git a/test/process/root_ctl.zig b/test/process/root_ctl.zig
index 979cfc48..5fdac20b 100644
--- a/test/process/root_ctl.zig
+++ b/test/process/root_ctl.zig
@@ -12,7 +12,7 @@ const check = process.check;
pub const cases = .{
.{ "root-ctl: Exit is answered before the editor quits", exitAnswers },
- .{ "root-ctl: with nothing attached a message leaves after MessageLinger on its own clock", messagesExpire },
+ .{ "root-ctl: with nothing attached a message stays on the notice row until the next one: no clock takes it", messagesStay },
.{ "root-ctl: Putall with one pane's file changed on disk fails, answered once the other panes' saves have landed", putallAfterSaves },
.{ "root-ctl: long and odd paths where a path goes (name, look, DumpDir, Dump, Save) are refused or said, never a crash; a bad ThemeFile fails the write", oddPaths },
.{ "root-ctl: Restore asks once about unsaved text, is answered before it cuts every connection, and the dump's panes come back under their serials", restore },
@@ -26,7 +26,7 @@ fn exitAnswers(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
}
/// Nothing attached, no key, no click, no other request comes to move it along.
-fn messagesExpire(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
+fn messagesStay(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
// With nothing attached: a window always is.
try process.only(.tui);
var d = try process.Detached.start(gpa, exe, "msg", .{});
@@ -35,11 +35,15 @@ fn messagesExpire(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try expect(has(try d.files.screen(), "lingering-words"));
// Reading /screen is itself a request, so wait without asking.
process.sleep(2500);
- try expect(!has(try d.files.screen(), "lingering-words"));
+ try expect(has(try d.files.screen(), "lingering-words"));
+ try d.files.write("/pane/1/ctl", "Msg next-words\n");
+ const shown = try d.files.screen();
+ try expect(has(shown, "next-words") and !has(shown, "lingering-words"));
}
fn putallAfterSaves(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
- var d = try process.Detached.start(gpa, exe, "putall", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "putall", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const f = &d.files;
var arena = std.heap.ArenaAllocator.init(gpa);
diff --git a/test/process/tree.zig b/test/process/tree.zig
index 8fe3d881..86786603 100644
--- a/test/process/tree.zig
+++ b/test/process/tree.zig
@@ -582,7 +582,8 @@ fn looks(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "first", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "first", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const c = try Conn.dial(gpa, d.socket());
defer c.deinit(gpa);
@@ -606,7 +607,8 @@ fn longNames(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "long-names", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "long-names", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const c = try Conn.dial(gpa, d.socket());
defer c.deinit(gpa);
diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig
index 01b35a24..2680a499 100644
--- a/test/process/tty_boot.zig
+++ b/test/process/tty_boot.zig
@@ -114,14 +114,17 @@ fn boot(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "builtins");
defer t.deinit();
- try t.lines("notes.txt", 6, "");
+ // SPC ? is Help in the tag now (pick-ui SPEC §4.5): the +Help index is
+ // the word's, `Help` run from the workspace's tag, `Help c` swept here.
+ try t.file("notes.txt", "Help c Help h\nline 2\nline 3\nline 4\nline 5\nline 6\n");
try t.start(67, 120, &.{"notes.txt"});
try t.wait(8000, "notes.txt");
try t.stable(700, 20000);
try t.snap("boot");
// The full index includes commands without leader paths.
- try t.key("space ?");
+ try t.press("middle", "@Help", 1);
+ try t.release("middle", "@Help", 1);
try t.wait(10000, "pardes builtins: each one's keys and its name");
try t.wait(10000, "ClipPasteBefore");
// The words with no SPC path come last, each under its documentation:
@@ -141,19 +144,20 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.key("space j n space j n space j n");
try t.wait(10000, "Look enter, right-click");
try t.wait(10000, "Look at its argument as B3 does");
- try t.key("space c ?");
+ try sweepHelp(&t, "@Help#1", 4);
try t.wait(10000, "under SPC c");
try t.wait(10000, "Joincol");
try t.stable(700, 15000);
try t.snap("column-group");
- try t.key("space h ?");
+ try sweepHelp(&t, "@Help#2", 4);
try t.wait(10000, "Tutor");
try t.stable(700, 15000);
try t.snap("docs-group");
- // Tutor's row, under the documentation of the three before it
- try t.press("middle", "@Tutor", 24);
- try t.release("middle", "@Tutor", 24);
+ // Tutor's row, under the documentation of the four before it (Keys,
+ // describe-key, is SPC h k; Messages' runs to three rows)
+ try t.press("middle", "@Tutor", 32);
+ try t.release("middle", "@Tutor", 32);
try t.wait(10000, "PARDES TUTOR");
try t.stable(700, 15000);
try t.snap("tutor-from-index");
@@ -436,6 +440,8 @@ fn tutor(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn topbarexec(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "topbarexec");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("zmarkfile.txt", "hay ZQNEEDLE stack");
try t.start(21, 90, &.{ "-n", "3" });
try t.wait(8000, "zmarkfile.txt");
@@ -472,13 +478,18 @@ fn topbarexec(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "leader");
defer t.deinit();
- try t.file("cmds.txt", "Help");
+ // SPC ? and `?` down a level are Help in the tag now (pick-ui SPEC
+ // §4.5): the +Help index for a group is the word's, `Help h` swept here.
+ try t.file("cmds.txt", "Help Help h Help t Help c Help l");
try t.start(41, 100, &.{"cmds.txt"});
try t.wait(8000, "Newcol Joincol");
try t.wait(8000, "cmds.txt");
try t.stable(700, 20000);
+ // SPC's level, rolled in the tag once its delay is up (a frame on the
+ // clock, which a quiet screen does not wait for)
try t.key("space");
+ try t.wait(5000, "↓ unroll");
try t.stable(400, 5000);
try t.snap("spc");
try t.key("h");
@@ -489,15 +500,21 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.stable(400, 5000);
try t.snap("abandoned");
try t.key("space x");
+ try t.wait(5000, "↓ unroll");
try t.stable(400, 5000);
try t.snap("unmapped");
+ // A key the level has no child for is struck and the level stays
+ // (which-key); Esc leaves it.
+ try t.key("esc");
+ try t.settle(100);
+ try t.stable(400, 5000);
// Executing Help as text opens the full index, not a filtered group.
try t.press("middle", "@Help", 4);
try t.release("middle", "@Help", 4);
try t.wait(10000, "pardes builtins: each one's keys and its name");
try t.wait(10000, "ClipPasteBefore");
- try t.key("space h ?");
+ try sweepHelp(&t, "@Help#2", 4);
try t.wait(10000, "under SPC h");
try t.stable(700, 15000);
try t.snap("help-group");
@@ -517,23 +534,24 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.key("space d");
try t.stable(700, 15000);
- try t.key("space ?");
+ try t.press("middle", "@Help", 4);
+ try t.release("middle", "@Help", 4);
try t.wait(10000, "pardes builtins: each one's keys and its name");
try t.wait(10000, "ClipPasteBefore");
// PDF commands depend on the build; these toggles do not.
- try t.key("space t ?");
+ try sweepHelp(&t, "@Help#3", 4);
try t.wait(10000, "under SPC t");
// its first rows: each word's documentation under it, the rest below
try t.wait(10000, "SPC t a Ascii");
try t.wait(10000, "SPC t c Changes");
// SPC w is Window itself now, not a group; the column group stands in
- try t.key("space c ?");
+ try sweepHelp(&t, "@Help#4", 4);
try t.wait(10000, "under SPC c");
try t.wait(10000, "Joincol");
try t.stable(700, 15000);
try t.snap("help-column");
- try t.key("space l ?");
+ try sweepHelp(&t, "@Help#5", 4);
try t.wait(10000, "WsDiagnostics");
try t.stable(700, 15000);
try t.snap("help-language");
@@ -544,6 +562,15 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.done();
}
+/// B2 swept over `Help <key>` from the word `at` on `row` (its six
+/// cells): the word and its argument run, as a sweep anywhere runs them.
+fn sweepHelp(t: *Tty, at: []const u8, row: u16) !void {
+ const end = try std.fmt.allocPrint(t.arena, "{s}+6", .{at});
+ try t.press("middle", at, row);
+ try t.drag("middle", end, row);
+ try t.release("middle", end, row);
+}
+
fn mini(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "mini");
defer t.deinit();
@@ -904,6 +931,8 @@ fn savepane(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn filewatch(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "filewatch");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("w.txt", "line 1\nline 2\n/tmp/pardes-snap/filewatch/cwd/sub/s.txt\nline 4\nline 5\nline 6\nline 7\nline 8\nline 9\nline 10\nline 11\nline 12\n");
try t.lines("sub/s.txt", 8, "");
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig
index 53e1da1e..0ae99de7 100644
--- a/test/process/tty_editing.zig
+++ b/test/process/tty_editing.zig
@@ -365,13 +365,16 @@ fn pipe(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn chordcut(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "chordcut");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.lines("f.txt", 5, "");
try t.lines("g.txt", 2, "");
// The narrow-window fallback splits below the source shell and leaves the
// unrelated right column untouched. Give the caller enough cells that the selected
// `echo B''OO g.txt` remains one displayed row; this test is about chords, not
// soft-wrap traversal.
- try t.start(31, 120, &.{ "-n", "3" });
+ // A row more than its panes take: the notice row under them.
+ try t.start(32, 120, &.{ "-n", "3" });
try t.wait(8000, "f.txt");
try t.stable(700, 20000);
// open f.txt: click a body spot, type the name, look it
@@ -608,9 +611,12 @@ fn find(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.start(41, 120, &.{"here.txt"});
try t.wait(8000, "here.txt");
try t.stable(700, 20000);
- // SPC f is a group (Find, New, Save, Recent, Grep): the indicator waits
+ // SPC f is a group (Find, New, Save, Recent, Grep): its level rolled in
+ // the tag once SPC's delay is up (a frame on the clock, which a quiet
+ // screen does not wait for)
try t.key("space");
try t.key("f");
+ try t.wait(5000, "↓ unroll");
try t.stable(400, 5000);
try t.snap("group");
// the second f opens the query pane: every file listed, line 1 `Find `
@@ -738,6 +744,8 @@ fn fsearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn grep(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "grep");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("a.txt", "hello TARGET one\nnothing here\nlast TARGET line");
try t.file("sub/b.txt", "deep\nTARGET inside sub");
@@ -1325,6 +1333,8 @@ fn jumps(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "cmdword");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("cmds.txt", "@`echo ZZ''E` @`echo ZZ''L` Look p.txt @`Look .`");
try t.file("p.txt", "just text");
try t.file("zzmark.txt", "x");
@@ -1887,6 +1897,8 @@ fn lspdebug(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn lsprelpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "lsprelpath");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.dir("sub/inner");
try t.file("shade.zig", "pub const Shade = enum {\n verdigris,\n cinnabar,\n};\n");
@@ -1984,6 +1996,8 @@ fn lsp_rename(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn lsp_rename_files(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "lsp-rename-files");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("lib.rs", "// main.rs\npub fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n");
try t.file("main.rs", "mod lib;\n\nfn main() {\n let x = add(1, 2);\n let y = add(3, 4);\n let _ = x + y;\n}\n");
try t.start(25, 100, &.{"lib.rs"});
diff --git a/test/process/tty_images.zig b/test/process/tty_images.zig
index 5c39d4f3..9c37a40d 100644
--- a/test/process/tty_images.zig
+++ b/test/process/tty_images.zig
@@ -15,7 +15,8 @@ fn images(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "images");
defer t.deinit();
try t.ppmDiag("pic.ppm");
- try t.start(31, 150, &.{ "-n", "3" });
+ // A row more than its panes take: the notice row under them.
+ try t.start(32, 150, &.{ "-n", "3" });
try t.wait(8000, "pic.ppm");
try t.stable(700, 20000);
try t.press("left", "5", 9);
diff --git a/test/process/tty_layout.zig b/test/process/tty_layout.zig
index 08a02488..e0396a53 100644
--- a/test/process/tty_layout.zig
+++ b/test/process/tty_layout.zig
@@ -288,9 +288,12 @@ fn layout_close(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn layout_open(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "layout-open");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("sub/f.txt", "echo 'TTY'OK");
- try t.start(31, 100, &.{ "-n", "3" });
+ // A row more than its panes take: the notice row under them.
+ try t.start(32, 100, &.{ "-n", "3" });
try t.wait(8000, "sub");
try t.stable(700, 20000);
// give pane 0 (top-left) some content so its content-height split is visible
diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig
index 9f7c9308..838b2aea 100644
--- a/test/process/tty_terminals.zig
+++ b/test/process/tty_terminals.zig
@@ -226,12 +226,13 @@ fn ttyhelp(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
// row 0, which is not a pane, so the terminal never saw it.
try t.key("c-b");
try t.stable(600, 10000);
+ // SPC ? is Help in the focused pane's tag (pick-ui SPEC §4.5): a field
+ // typed in, the leaves it matches in rows under the tag, the cursor's
+ // documentation beside them.
try t.key("space");
try t.key("?");
- // The bare-tty boot now opens an empty pane under the shell, so the index is
- // half as tall: wait on a row that is on screen. What the leader route
- // produced is the snapshot below, not this.
- try t.wait(10000, "SPC ? Help");
+ try t.send("tutor");
+ try t.wait(10000, "SPC h t · Tutor · help");
try t.stable(700, 15000);
try t.snap("leaderworks");
try t.done();
@@ -590,7 +591,8 @@ fn reflow(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn respawn(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "respawn");
defer t.deinit();
- try t.start(31, 140, &.{ "-n", "3" });
+ // A row more than its panes take: the notice row under them.
+ try t.start(32, 140, &.{ "-n", "3" });
try t.wait(8000, "Newcol Joincol");
try t.stable(700, 20000);
// middle-click Del on the lower-left pane's tag: the pane id is freed while