================
@@ -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:
Nit: The official name is "VS Code", not "VSCode".
```suggestion
// VS Code will reuse the same terminal for the same debug configuration
```
https://github.com/llvm/llvm-project/pull/163830
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits