Kernel: Implement fast scrolling for TTY

This commit is contained in:
2024-06-28 23:15:03 +03:00
parent 010c2c934b
commit 42237a3bc8
6 changed files with 46 additions and 6 deletions
@@ -33,6 +33,13 @@ namespace Kernel
m_framebuffer_device->sync_pixels_rectangle(x, y, font().width(), font().height());
}
bool FramebufferTerminalDriver::scroll(Color color)
{
m_framebuffer_device->scroll(font().height(), color.rgb);
m_framebuffer_device->sync_pixels_full();
return true;
}
void FramebufferTerminalDriver::clear(Color color)
{
for (uint32_t y = 0; y < m_framebuffer_device->height(); y++)