Hey,
I was thinking of making a similar UI for CustomPiOS that I build and maintain, that has the build output that buildx has (I need to re-implement it in python):
Its not only the return carriage. Its going up and updating at least 3 different sections. I would like to see the code itself because it might have some design insight too.
I didn1t try to find whre it writes the terminal, but if I had to implement a feature like this, I would probably write calculate the size of the terminal, store the lines, calculate the available lines remained after the finished layers, and write the end of the list to the remaining lines in a loop. If you find the exact code that implements it, please, share it si we can learn from it too.