[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 26 08:28:38 PDT 2025
JDevlieghere wrote:
> And how exactly does this fix #134064?
https://github.com/llvm/llvm-project/issues/134064#issuecomment-2923315404 has a visualization of the problem, which you've summarized in https://github.com/llvm/llvm-project/pull/145823#pullrequestreview-2961296028.
> As in, what steps are happening with this PR compared to before.
This PR uses the active IOHandler (i.e. Editline) to get the cursor position before we emit the newline and then uses an ANSI escape code to move the cursor back to its original column. I was curious why, depending on the timing, Editline was able to recover from this and this is how Editline does it.
https://github.com/llvm/llvm-project/pull/145823
More information about the lldb-commits
mailing list