summaryrefslogtreecommitdiff
path: root/test/process/tty_terminals.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/process/tty_terminals.zig')
-rw-r--r--test/process/tty_terminals.zig22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig
index a49d3696..86eab7b7 100644
--- a/test/process/tty_terminals.zig
+++ b/test/process/tty_terminals.zig
@@ -125,8 +125,8 @@ fn ttyedit(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.key("c-b");
try t.stable(600, 8000);
// click into the middle of the first output row
- try t.press("left", "8", 9);
- try t.release("left", "8", 9);
+ try t.press("left", "8", 8);
+ try t.release("left", "8", 8);
try t.stable(400, 5000);
try t.snap("before");
// Enter splits the row there: "one t" stays, "wo three" becomes a real line
@@ -303,8 +303,8 @@ fn ttylook(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
// selection: the cursor word expands): the click puts it on the ls command
// line's `ls`, a word no file names, which a terminal lists in a +Search,
// its row the place in that terminal (@p1:1:1-2)
- try t.press("left", "4", 5);
- try t.release("left", "4", 5);
+ try t.press("left", "4", 4);
+ try t.release("left", "4", 4);
try t.stable(400, 5000);
try t.key("enter");
try t.wait(10000, "@p1:1:1-2");
@@ -597,8 +597,8 @@ fn respawn(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.stable(700, 20000);
// middle-click Del on the lower-left pane's tag: the pane id is freed while
// its shell process stays alive in the slot
- try t.press("middle", "@Collapse+9", 18);
- try t.release("middle", "@Collapse+9", 18);
+ try t.press("middle", "@Del", 18);
+ try t.release("middle", "@Del", 18);
try t.stable(700, 10000);
// Alt-n reuses the freed id -> spawn effect lands on the occupied slot
try t.key("a-n");
@@ -707,7 +707,7 @@ fn look_fd_deep(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.send("cd a && ls && fd");
try t.key("enter");
try t.wait(8000, "c.txt");
- try t.wait(8000, "cwd/a Term");
+ try t.wait(8000, "cwd/a Del Term");
try t.stable(700, 20000);
try t.snap("listed");
try t.press("right", "6", 8);
@@ -752,10 +752,10 @@ fn ghostty_mid(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.key("c-b");
try t.stable(600, 8000);
try t.send("\x1b[I");
- try t.send("\x1b[<35;10;10M\x1b[<35;7;8M\x1b[<35;4;6M");
- try t.send("\x1b[<1;4;6M");
- try t.send("\x1b[<1;4;6m");
- try t.send("\x1b[<35;6;6M");
+ try t.send("\x1b[<35;10;9M\x1b[<35;7;7M\x1b[<35;4;5M");
+ try t.send("\x1b[<1;4;5M");
+ try t.send("\x1b[<1;4;5m");
+ try t.send("\x1b[<35;6;5M");
try t.wait(10000, "GHOSTOK");
try t.stable(700, 10000);
try t.snap("ghostty-mid");