Kernel: Don't wrap cursor immediatly at cols()

This prevents unwanted scrolling when writing to bottom right cell
This commit is contained in:
2025-04-23 22:03:53 +03:00
parent cc7c1ad30d
commit dabc3c6cc4
4 changed files with 40 additions and 25 deletions
@@ -104,6 +104,11 @@ namespace Kernel
void FramebufferTerminalDriver::show_cursor(bool use_data)
{
// NOTE: cursor is allowed to be on width as scrolling only
// happens after character gets printed to next line
if (m_cursor_x == width())
return;
if (!use_data)
read_cursor();