]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: implement VGA text-mode scrolling instead of wrap-to-row-0
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:14:19 +0000 (01:14 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 04:14:19 +0000 (01:14 -0300)
commit127f2ac2fefdb1f4bf1a103013e91db5f29f0529
tree04f3d32e210c5fa439a29713d3e2e7f9d6b7d0d6
parent72ab5d54f7d87abc8ff90b51242c44eaeb8b0104
fix: implement VGA text-mode scrolling instead of wrap-to-row-0

When the cursor reached the bottom of the 25-row VGA text buffer,
term_row was reset to 0, overwriting the top of the screen. This
made boot output unreadable once it exceeded 25 lines.

Add vga_scroll() that shifts all rows up by one and clears the
last row. Called from both vga_put_char and vga_print.

Passes: make, cppcheck, QEMU smoke test.
src/drivers/vga_console.c