[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:14:31 PDT 2025
================
@@ -261,6 +263,15 @@ static llvm::Error LaunchRunInTerminalTarget(llvm::opt::Arg &target_arg,
files.push_back(files.back());
if (llvm::Error err = SetupIORedirection(files))
return err;
+ } else if ((isatty(STDIN_FILENO) != 0) &&
+ llvm::StringRef(getenv("TERM")).starts_with_insensitive("xterm")) {
+ // Clear the screen.
+ llvm::outs() << ANSI_CSI_RESET_CURSOR ANSI_CSI_ERASE_VIEWPORT
+ ANSI_CSI_ERASE_SCROLLBACK;
+ // VSCode will reuse the same terminal for the same debug configuration
----------------
JDevlieghere wrote:
https://code.visualstudio.com/brand#brand-name
https://github.com/llvm/llvm-project/pull/163830
More information about the lldb-commits
mailing list