[Lldb-commits] [lldb] [lldb] Correctly restore the cursor column after resizing the statusline (PR #145823)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 26 09:42:16 PDT 2025


DavidSpickett wrote:

Ok I get what we're doing now but...

> 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.

This PR uses the active IOHanlder (which is Editline), but you're saying that prior to this PR, Editline was sometimes able to recover. So we were using Editline all along? Confused as to what is Editline the library and what is our Editline code.

Do you mean that it's now all done in the same place and that keeps the timing correct?

https://github.com/llvm/llvm-project/pull/145823


More information about the lldb-commits mailing list