[Lldb-commits] [lldb] [lldb-dap] Improve the runInTerminal ux. (PR #163830)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 16 13:13:48 PDT 2025


================
@@ -72,6 +72,17 @@
 
 #define ANSI_ESC_START_LEN 2
 
+// Cursor Position, set cursor to position [l, c] (default = [1, 1]).
+#define ANSI_CSI_CUP(...) ANSI_ESC_START #__VA_ARGS__ "H"
+// Reset cursor to position.
+#define ANSI_CSI_RESET_CURSOR ANSI_CSI_CUP()
+// Erase In Display.
+#define ANSI_CSI_ED(opt) ANSI_ESC_START #opt "J"
+// Erase complete viewport.
+#define ANSI_CSI_ERASE_VIEWPORT ANSI_CSI_ED(2)
+// Erase scrollback.
+#define ANSI_CSI_ERASE_SCROLLBACK ANSI_CSI_ED(3)
----------------
JDevlieghere wrote:

Thanks. I'll adopt `ANSI_CSI_ERASE_VIEWPORT` in the statusline which does this too. 

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


More information about the lldb-commits mailing list