<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121408>121408</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LLDB] Visual artifact caused by debugger when opening running man, less and neovim
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Marcob02
</td>
</tr>
</table>
<pre>
While debugging a C program using ncurses i stumbled upon a weird visual artifact.
This is my C program:
```c
#include <stdio.h>
#include <ncurses.h>
int main() {
initscr();
endwin();
return 0;
}
```
# Steps to reproduce
1 - Run this program using lldb
2 - Run man, less or neovim (i dont know much but probably they have something in common)
# Expected result
<img width="480" alt="Image" src="https://github.com/user-attachments/assets/ff644035-9731-4d92-b50a-ead39d755a48" />
# Actual result
<img width="480" alt="Image" src="https://github.com/user-attachments/assets/378ce2b5-ce24-4468-bd18-472880d4c882" />
# Notes
I also tried running on another machine with a different OS (MacOS and archlinux) and using a different terminal emulator (kitty and iTerm2) and got the same issue, but not if i used GDB
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzEVE-P27YT_TT0ZSCDpihLOujg3c3-ECD5BegG7ZkixxIb_jHI4Tr-9gVtb7JBi14LCJD4yBm9mXl8Kme7BMSJdQ-se9qoQmtM02eVdJy52MzRXKY_VusQDM5lWWxYQMEjnFJckvJQckWCLiljBguZip8dGiinGEDBGW0y8GpzUQ5UIntUmraMH76uNoPN4C8_s7H2wPiB7fnt0XUhWhu0KwaBtY-ZjI3blbUf_rZ1p_Bjkx9sIPDKBiYGJkZg_cMVH22wlHW6way9oxjM-e3sDzAhlRSA34H-6T29GwV4ITxloAgJTymaopHxww4a-K0EoFrlr71yzsyMH8T9hFeBiUdwmDPEBAHjq_XAxGDBxEDwLcQz-KJXmAvVVLOa3QVoxQus6hUhR4-01sw2gI7ex1BLuLag8vvw_YSa0EDCXBxVtH20foGzNbSy9okJIQfOhADl6Lb-6NWCFclJ35CV6JTrfMQzE8-LpbXMWx09E88lY2oUkdKrx0CZiWeVM14_jse9lLztmrFvd400o2jmjqsGlWlH03edkkP9T037NrdK-qCpCua_oNz2g0Yxd41GIRsp90Mzm93QyF4MAzdSD4P4J8r_j4SZ8cNHUC5HoGRrz0sIdTT1LoRIKybwSq82IJwtraDA2OMREwaCLy917J-V_vICKhhQSa_OhvK9qrcCN_28DyFM3gblAH1ximKqGb5Zoss1wH7F5MVb-BKpygay8gg254JVeFVVIRLYI1goGQ387-lhY6bWjO2oNjjt-rbb93w_tJt1mpXiHaKclej1IGUnRhx4P0rd7Qc97jZ2ElzInWh3u0FK2W6FbhUfd73ClstjNzLJ0Svrts69-m1My-ZKZdqJneTDxqkZXb7akRABz29ERXWnNNWgZi5LZpI7myn_TEOW3NXHPn16ql4Gv_9qOqDVtbz5crcyTHBeMUA84XVGb7N6fyNr325XclOSm_5FUpXH_dWcUvwTNTHxfGVfVXUv73USfwUAAP__UeO1Sg">