Terminal address and dimensions
Page 1 of 1

Author:  k20shores [ Thu Apr 26, 2018 11:41 pm ]
Post subject:  Terminal address and dimensions

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?

Author:  Octocontrabass [ Fri Apr 27, 2018 1:20 am ]
Post subject:  Re: Terminal address and dimensions

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group