Add: graphics mode terminal scrolling

This commit is contained in:
xamidev
2024-08-23 13:05:53 +02:00
parent f8eb658c33
commit f1a9f84f24
8 changed files with 86 additions and 33 deletions

View File

@@ -77,9 +77,9 @@ serial_printf(3, "Framebuffer BPP: %u\r\n", fb_info->framebuffer_bpp);
uint32_t pitch = fb_info->framebuffer_pitch;
uint32_t bpp = fb_info->framebuffer_bpp;
//8x16 font padded with 1 for each char = 9px/char
VGA_WIDTH = width/9;
VGA_HEIGHT = height/9;
//8x16 font, not padded
VGA_WIDTH = width/8;
VGA_HEIGHT = height/16;
scanline = width * (bpp/8);
@@ -114,6 +114,11 @@ serial_printf(3, "Framebuffer BPP: %u\r\n", fb_info->framebuffer_bpp);
}
*/
for (int i=0; i<100; i++)
{
printf("%d\n", i);
}
//colorputs("Wow, such colorful output!", green, blue);
colorputs(ascii_title, green, black);