9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.64k stars 326 forks source link

Bug: Acme: Multiple running programs fight each other for visible area #679

Open spektrokalter opened 1 month ago

spektrokalter commented 1 month ago

Expected behavior

Acme automatically allocates enough space to make the tip of running commands' output visible.

The allocation must happen deterministically or more predictably, so that multiple programs do not fight each other for visible area.

Unexpected behavior

Unfortunately, they do fight with each other, especially if there is a dozen of them.

Steps to reproduce the problem

Run the following in any three distinct directories:

while () {
    sleep 1
    fortune
}

Three +Errors windows open in the right column.

Make sure there is at least two windows above them. Expand the first in the column, so that all windows below it collapse. Now watch three last windows fighting each other for available space.

If you're still confused, you could watch the demo:

https://github.com/user-attachments/assets/ff46a27e-6946-4a50-a4ce-ba8959e46902

plan9port version

a2567fcac9851e5cc965a236679f568b0e79cff2

OS version

macOS 14.5 (23F79)