Kernel: Fix ANSI CSI 1J

I was accidentally clearing the whole screen when I needed to clear from
cursor to the end of the screen
This commit is contained in:
Bananymous 2025-06-05 02:38:57 +03:00
parent 8de19aff3c
commit f79db874bf
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ namespace Kernel
// Clear from cursor to the end of screen
for (uint32_t i = m_column; i < m_width; i++)
putchar_at(' ', i, m_row);
for (uint32_t row = 0; row < m_height; row++)
for (uint32_t row = m_row + 1; row < m_height; row++)
for (uint32_t col = 0; col < m_width; col++)
putchar_at(' ', col, row);
return reset_ansi();