diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 20:35:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 78ee8672307adbdf30a2afffc38efb70217dc212 (patch) | |
| tree | 7eb7de1d8eb5491bdaceed16d8fa9a1e5ddd0ada /docs | |
| parent | 1df6bd12fafbf97062f7844a23de208add75a843 (diff) | |
| download | pardes-78ee8672307adbdf30a2afffc38efb70217dc212.tar.gz pardes-78ee8672307adbdf30a2afffc38efb70217dc212.zip | |
pty/status reads the pty's size as winsize set it, on a line of its own
A dogfood agent wrote winsize 100 30 to pty/ctl and pty/status went on
reporting the pane's grid, and the status line had no newline to end it.
The size winsize sets is kept until the pane resizes and gives the pty its
grid again; ctl's winsize read back and status both report it, and status
ends with a newline.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/fs.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -563,7 +563,11 @@ command whose end mark carried no status, which is not a success; `error out of memory` is an answer that could not be made. The header is always the whole first line. It reads `busy` at once when a command is running or text is typed at the prompt, -which is also when the third field of `pty/status` reads 1. A line written +which is also when the third field of `pty/status` reads 1. `pty/status` is +one line, three right-aligned fields and a newline: the pty's columns and +rows, then busy (0 or 1). The size, and `pty/ctl`'s `winsize` read back, is +what `winsize C R` last set, until the pane itself resizes and gives the pty +its grid again. A line written before a new terminal's shell has drawn its first prompt is not busy: it waits for that prompt (a respawn meanwhile keeps it waiting for the new shell's) and is sent then, so the first command a script gives a fresh |
