https://github.com/labath commented:
This messes up my terminal when reducing the height. It goes from  to  The cursor ends up in the right place, but it ends up inside the former (inactive) copy of the status line. I guess that's related to the fact that the status line is automatically disabled on resize. Previous (unoptimized) code worked fine. (Note my window manager is configured to not to do "dynamic resizes" so lldb only gets one SIGWINCH with the new final size -- not all the ones in between. I haven't tried what would happen with dynamic resizes -- it might be better, or it might be much worse). Since I was trying this out, I also noticed that changing the size *upwards* also has a bug (unrelated to this patch). This is how it looks like:  ->  I don't know exactly why, but I suspect it has something to do with the clearing code. It's definitely triggered by lldb, as this is what I get if I resize without any lldb involvement (I run lldb to set up the scroll window, but then I kill it so it doesn't do any extra work after resizing):  ->  I.e., the terminal just happily show the extra lines from the history and the (inactive) status line will stay at the bottom. (inactive means that if I press "return" the prompt will go into the status line remnant). https://github.com/llvm/llvm-project/pull/146435 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits