yep, the problem is with the dimensions (delta Y is too small in that
example). Looking at /sys/src/cmd/rio/wctl.c, the function 'goodrect'
rejects any Dx < 100 and Dy < 3*font height. Running 9legacy in qemu,
I'm seeing Dx < 100 and Dy < 54 are ignored.

The /rc/bin/window script should do the check, since it's already
joined at the hip with rio.

On Thu, Sep 10, 2026 at 1:37 PM plat via 9fans <[email protected]> wrote:
>
> Hello once again, mike
>
> I don't think it's a bad idea per se to post it here. The question is still 
> related to the same book, so it's kind of like an add-on to your question
>
> I assume the issue may be related to setting a window size too small. Rio has 
> some sort of a limit on how small a window can be. On my 9front machine, 
> running this window command results in an error: "echo: write error: bad 
> rectangle in wctl request". However, running "window -r 0 0 900 1000 stats" 
> works just fine
>
> I am too lazy to look up the source code of rio to find out what determines 
> the minimum required window size, but I can assume it was either changed, or 
> is dependent on total screen size and the author had a smaller monitor
>
> Hope this helps you! If it doesn't, could you describe what exactly happens 
> when you run the command?
>
> 9fans / 9fans / see discussions + participants + delivery options Permalink

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T8e38494599a19744-Md0bcda012dbe13f5a6b81371
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to