diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 13:48:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | 0fb5881520884691c395ef1ce4b9d1d902434bd6 (patch) | |
| tree | 4ec25459314b0b2f3249380d4c122611098661dd /src/builtins.zig | |
| parent | 65a4c17767f175ce16cbbce5520a86926d61692d (diff) | |
| download | pardes-0fb5881520884691c395ef1ce4b9d1d902434bd6.tar.gz pardes-0fb5881520884691c395ef1ce4b9d1d902434bd6.zip | |
A run whose output a redraw moved above its start answers cut, never an empty whole
pty/run reads a command's output between its C and D marks. When the
end landed at or before the start, it answered `exit 0` with no output,
as if nothing was printed. That happens when the shell redraws its prompt
over the output, as it can in a window two rows high (winsize 10 2). Now
only equal marks mean nothing was printed. An end at the top-left cell
or above the start says `cut`, since how much was printed is not known.
bash, fish, long lines and 3000-line outputs at winsize 10 2 all came
back whole on this build, so the dogfood's loss could not be reproduced
directly. The test drives the marks into the inverted case the loss
needs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/builtins.zig')
0 files changed, 0 insertions, 0 deletions
