[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 30 01:33:56 PDT 2025
labath wrote:
> I had considered this but I quickly discarded it after trying it because it looks like very much like a bug. When you interactive resize the terminal we'll get a bunch of `SIGWINCH`s (which is desirable because otherwise text might have wrapped and we don't get a chance to clear it, which is another bug...) so your text would scroll up every time the number of terminal rows changes, which can be a lot.
Yeah, that would definitely be bad, but I feel like it should be avoidable. I take it that's a side effect of implementing resize by disabling and re-enabling the status line. However, does it have to be that way? What if resize was a separate operation that just involved redrawing the status line in the new place? In that case, you shouldn't need to do the `\n` thingy (even if the terminal size is being decreased) because the space was already reserved by the previous status line (?)
https://github.com/llvm/llvm-project/pull/145823
More information about the lldb-commits
mailing list