diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-30 02:17:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-30 03:13:15 -0300 |
| commit | 44587446c2478de276b7c5c5a12063e6c7946b4e (patch) | |
| tree | b2789b64bf53495bb34590b1e58ccb7541236c16 /src/pardes.zig | |
| parent | f8a56c962d5103b84453d4305cd27973a71d4aa3 (diff) | |
| download | pardes-44587446c2478de276b7c5c5a12063e6c7946b4e.tar.gz pardes-44587446c2478de276b7c5c5a12063e6c7946b4e.zip | |
remote client: predicted echo (src/echo.zig) over its own view, judged a frame at a time and woken while predictions are out; PARDES_NO_ECHO turns it off; a session's step that reads whether a terminal is at its prompt after its output (the first prompt's greeting, a command waiting for the prompt) is taped (`.prompt`), as a screen replica's emulator is the last delta's until the next
Found by a client opening a shell of its own (` nt`): the session's layout after the shell's first output saw the prompt and typed its greeting (`ls`, after a pty resize), and the client's replay of it, its emulator a delta behind, did not: it diverged at once.
At 207 ms through the relay (Debug): a key into a shell on the client's screen p50 9.1 ms with prediction, 213.6 ms without.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index 6e01f8cd..2b1fae61 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -7873,7 +7873,7 @@ pub const Pardes = struct { // its shell's FIRST prompt, or never: typed later it would land // in whatever runs then, or in the middle of a line someone // typed (panes.terminal.greeting). - if (pane.greet and pane.isTerminal() and p.resize_count > 0) switch (panes.terminal.greeting(pane)) { + if (pane.greet and pane.isTerminal() and p.resize_count > 0) switch (tape.value(.prompt, panes.terminal.greeting, .{pane})) { .wait => {}, .never => pane.greet = false, .now => { |
