<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/139646>139646</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
CMD+K/CTRL-K breaks the statusline
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JDevlieghere
</td>
</tr>
</table>
<pre>
Pressing CMD+K (CTRL-K) tells the terminal emulator to clear the scrollback buffer. This effectively moves up everything on screen so active line is at the top. This breaks the statusline, as it gets moved up, without lldb knowing about it and being given the chance to clear it. Based on what I can find online, this is handled by the terminal emulator and there's no way to intercept it from the inferior.
It seems like this is a problem even for applications using curses (like vim and htop). So maybe this is NTBF? Using CTRL-L does behave correctly.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0ktFurDYQhp_G3IyCwCy74YKLbCKkNGlVtekDjM0A7hob2QOrffvK7Pbk5pwrpGHm_37P_BijGR1RK-qzqN8yXHnyof3tjTZraJwoUKZ8f2v_DBSjcSO8_v4m5PkDhHx-_frr8-lDyAaYrI3AEwFTmI1DCzSvFtkHYA_aEob9d9TBW6tQX0Ctw0Ahh6_JRKBhIM1mI3uD2W8UYV2ANgo3nhLVuzRK5CB6wL0TrHEEJgLyneyXh5gKhJe7ncjIa0ydQr4CRjAMI3HcIT2sSypfDU9-ZbC2V3Bx_pqIqFLJMKDrQVEqjWYjt8vqCZ2m76cZzuGMkfpk9DohwztodDAYl0r_8zm5MxEmdL2lHtTtFztLTE7LF_IUwXm44i3RjGMKmpbd2BD8vM8bN1AwPuSieBHFyztDJJojWHOhH0yEJXhlaU5rdTAkyrJYo5GNdxHW_bp6DZFiOu4-vJl59zKxX4Rscvjbw4w39S37x9e5E1UH_9zDkRLxCb2nCIom3Ai0D4E021ue9W3VN1WDGbXl6XAqmqp5rrKpLfFUDuWhPqDWsimkIinrpmrq-lhS8XzKTCsLWRd1KWVVV0WVl7oq-iMioTxVJ1TiUNCMxubWbnPuw5iZGFdqy6o5Ho6ZRUU27hmXMl1ZSJnSHtrU_6TWMYpDYU3k-K3Ahi21j7gL2d3T_vNwZWuw7cS8RFG9CNkJ2Y2Gp1Xl2s9Cdkn08Xlagv-XNAvZ7R6jkN3D5tbK_wIAAP__Xuw0tQ">