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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user