]> 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)
commit50edacd5fd58654d8ba09ca30e927a992a79c929
treeacbf7f6d04b6284e54e355ef394336b67461652a
parent66083f271d2b4cd9a75149f69995b96fe0b3a9ad
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