diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 00:32:48 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 1d382a3ed42788e82301d0ce2a16ebc35c79046c (patch) | |
| tree | 2da33a886055944f17dc7e6c53cdc0aa49735c97 /test/panes.zig | |
| parent | 9c2fc736b9ccd7b7eea11e7f544ed540d2d2a6c2 (diff) | |
| download | pardes-1d382a3ed42788e82301d0ce2a16ebc35c79046c.tar.gz pardes-1d382a3ed42788e82301d0ce2a16ebc35c79046c.zip | |
Term: prompt and commands through the interface: Term.prompt is the plain record of where the shell is in its command cycle (its phase, commands started, prompts drawn, lines declined, a continuation, the last command to finish and its status, input ready, input empty, the cursor at a prompt), Term.commandOutput what the newest command printed and Term.endOutputHere ends a command's output at the cursor; the pending command queue is the core's (Pane.pending_command, Pane.queuePendingCommand and Pane.releasePendingCommand, released at the shell's start or its prompt where Core.zig hears of them), and so are Pane.greeting, Pane.noteCommand, Kill's "the command pardes typed runs" (builtins.zig) and the newlines that keep a command's output below the edit copy (exec.zig); /pty/status, /pty/run and predicted echo read the record; promptInputReady, promptInputEmpty, commandRunning, armShellSpawn, shellSpawned, deinitPendingCommand and padOutputBelowEdits go; nothing else changes
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/panes.zig b/test/panes.zig index 0a5674af..301568c1 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -2322,7 +2322,6 @@ const TerminalTests = struct { // Tests asserting raw ANSI indices explicitly select helix, whose palette // is inherited. Native-palette coverage lives in the overlay/eviction and // trailing-blank tests and checks their concrete RGB values instead. - const promptInputReady = panes.terminal.promptInputReady; const forwardKey = pardes.keys.forwardKey; const enterTty = pardes.keys.enterTty; @@ -2448,14 +2447,14 @@ const TerminalTests = struct { else => {}, }; p.update(.{ .output = .{ .pane = 0, .bytes = "\x1b]133;A;aid=pardes\x07prompt$ " } }); - try std.testing.expect(!promptInputReady(pane)); + try std.testing.expect(!pardes.Term.prompt(pane.terminal).input_ready); while (p.nextEffect()) |effect| switch (effect) { .write => return error.GreetedDuringPrompt, else => {}, }; p.update(.{ .output = .{ .pane = 0, .bytes = "\x1b]133;B;aid=pardes\x07" } }); - try std.testing.expect(promptInputReady(pane)); + try std.testing.expect(pardes.Term.prompt(pane.terminal).input_ready); var greeted = false; while (p.nextEffect()) |effect| switch (effect) { .write => |write| greeted = greeted or std.mem.eql(u8, write.bytes.slice(), "ls\r"), |
