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 /src/ninep/pane.zig | |
| 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 'src/ninep/pane.zig')
| -rw-r--r-- | src/ninep/pane.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ninep/pane.zig b/src/ninep/pane.zig index 50fc220e..ad6a6a28 100644 --- a/src/ninep/pane.zig +++ b/src/ninep/pane.zig @@ -63,6 +63,9 @@ pub const State = struct { lock: ?u32 = null, /// The host started a shell it could not teach to mark its prompts. unmarked: bool = false, + /// The pty's size as pty/ctl's winsize last set it, until the pane's own + /// grid resizes and gives the pty its size again. + winsize: ?[2]u16 = null, /// Installed during this update; /log hears about it once the update ends /// and the pane has its file, name and place. unannounced: bool = false, |
