Bug 9504

Summary: knotty doesn't delete lines if the number of output lines is larger than than number of lines in the terminal (tmux specific?)
Product: [Build System, Metadata & Runtime] BitBake Reporter: Randy Witt <randy.e.witt>
Component: bitbakeAssignee: Randy MacLeod <randy.macleod>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, richard.purdie
Version: 2.2   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Terminal with 10 lines after build
none
Terminal with 50 lines after build none

Description Randy Witt 2016-04-21 17:43:18 UTC
If you use knotty on a terminal with n lines, but the number of tasks displayed by bitbake is some number n+x, where x > 0(I think 0, it may actually be more) then knotty doesn't delete all of the task lines when they are finished.

For example try it with gnome-terminal on Fedora-23. Resize the terminal window to be 10 lines. Then change BB_NUMBEr_THREADS to 20 for a fresh build. Run "bitbake core-image-minimal" and make sure that the screen fills up with task output. Then you can feel free to Ctrl-C.

Now if you check the terminal scrollback buffer it will have lines for tasks that completed and should have been deleted.
Comment 1 Randy Witt 2016-04-21 17:47:06 UTC
Created attachment 3144 [details]
Terminal with 10 lines after build
Comment 2 Randy Witt 2016-04-21 17:48:26 UTC
Created attachment 3145 [details]
Terminal with 50 lines after build
Comment 3 Randy Witt 2016-10-25 20:40:40 UTC
This appears to be fixed in 2.2 rc.
Comment 4 Randy Witt 2016-10-25 20:41:09 UTC
Meant to pick fixed, even though not by me.
Comment 5 Randy Witt 2016-11-14 21:36:48 UTC
This still appears to happen with tmux. It may be a tmux problem, but since I don't know for sure, I'll reopen this.
Comment 6 Randy MacLeod 2023-10-24 14:24:19 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 7 Randy MacLeod 2025-12-11 16:24:34 UTC
This works well for me :
❯ tmux -V
tmux 3.2a

on ubu-22.04 server.