Page 1 of 1
Terminal address and dimensions
Posted: Thu Apr 26, 2018 11:41 pm
by k20shores
I followed the bare bones tutorial. I could not figure out how the terminal address dimensions were chosen. I tried changing the vga width and height and got unexpected results. How were these chosen and determined?
Re: Terminal address and dimensions
Posted: Fri Apr 27, 2018 1:20 am
by Octocontrabass
Bare Bones assumes VGA-compatible text mode 03h, which is 80x25 characters. If you want a different video mode, you'll have to either specify it in your multiboot header (and read the boot information to ensure GRUB actually set the mode you want!) or directly manipulate the VGA registers.
On the other hand, if you want to keep using the 80x25 text mode but only display text on a smaller portion of the screen, you can modify terminal_putchar() to use different minimum and maximum row/column values.